ToolbarSeparator.js.uncompressed.js 737 B

12345678910111213141516171819202122232425262728293031
  1. define("dijit/ToolbarSeparator", [
  2. "dojo/_base/declare", // declare
  3. "dojo/dom", // dom.setSelectable
  4. "./_Widget",
  5. "./_TemplatedMixin"
  6. ], function(declare, dom, _Widget, _TemplatedMixin){
  7. // module:
  8. // dijit/ToolbarSeparator
  9. return declare("dijit.ToolbarSeparator", [_Widget, _TemplatedMixin], {
  10. // summary:
  11. // A spacer between two `dijit.Toolbar` items
  12. templateString: '<div class="dijitToolbarSeparator dijitInline" role="presentation"></div>',
  13. buildRendering: function(){
  14. this.inherited(arguments);
  15. dom.setSelectable(this.domNode, false);
  16. },
  17. isFocusable: function(){
  18. // summary:
  19. // This widget isn't focusable, so pass along that fact.
  20. // tags:
  21. // protected
  22. return false;
  23. }
  24. });
  25. });