mirror of
https://github.com/videojs/video.js.git
synced 2024-12-14 11:23:30 +02:00
Created generic spacer component meant to make it easier to create
control bar layouts
This commit is contained in:
parent
e1e69941a1
commit
493f4d5df4
@ -44,6 +44,7 @@ ControlBar.prototype.options_ = {
|
||||
'remainingTimeDisplay': {},
|
||||
'liveDisplay': {},
|
||||
'progressControl': {},
|
||||
// 'separator': {},
|
||||
'fullscreenToggle': {},
|
||||
'volumeControl': {},
|
||||
'muteToggle': {},
|
||||
|
20
src/js/control-bar/separator.js
Normal file
20
src/js/control-bar/separator.js
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Just an empty separator element that can be used as an append point for plugins, etc.
|
||||
* Also can be used to create space between elements when necessary.
|
||||
*
|
||||
* @param {vjs.Player|Object} player
|
||||
* @param {Object=} options
|
||||
* @constructor
|
||||
*/
|
||||
vjs.Separator = vjs.Component.extend({
|
||||
/** @constructor */
|
||||
init: function(player, options){
|
||||
vjs.Component.call(this, player, options);
|
||||
}
|
||||
});
|
||||
|
||||
vjs.Separator.prototype.createEl = function(){
|
||||
return vjs.Component.prototype.createEl.call(this, 'div', {
|
||||
className: 'vjs-separator-control'
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user