40 lines
901 B
JavaScript
40 lines
901 B
JavaScript
//>>built
|
|
define("dijit/ToolbarSeparator", [
|
|
"dojo/_base/declare", // declare
|
|
"dojo/dom", // dom.setSelectable
|
|
"./_Widget",
|
|
"./_TemplatedMixin"
|
|
], function(declare, dom, _Widget, _TemplatedMixin){
|
|
|
|
/*=====
|
|
var _Widget = dijit._Widget;
|
|
var _TemplatedMixin = dijit._TemplatedMixin;
|
|
=====*/
|
|
|
|
// module:
|
|
// dijit/ToolbarSeparator
|
|
// summary:
|
|
// A spacer between two `dijit.Toolbar` items
|
|
|
|
|
|
return declare("dijit.ToolbarSeparator", [_Widget, _TemplatedMixin], {
|
|
// summary:
|
|
// A spacer between two `dijit.Toolbar` items
|
|
|
|
templateString: '<div class="dijitToolbarSeparator dijitInline" role="presentation"></div>',
|
|
|
|
buildRendering: function(){
|
|
this.inherited(arguments);
|
|
dom.setSelectable(this.domNode, false);
|
|
},
|
|
|
|
isFocusable: function(){
|
|
// summary:
|
|
// This widget isn't focusable, so pass along that fact.
|
|
// tags:
|
|
// protected
|
|
return false;
|
|
}
|
|
});
|
|
});
|