ToolbarSeparator.js 1002 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dijit.ToolbarSeparator"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dijit.ToolbarSeparator"] = true;
  8. dojo.provide("dijit.ToolbarSeparator");
  9. dojo.require("dijit._Widget");
  10. dojo.require("dijit._Templated");
  11. dojo.declare("dijit.ToolbarSeparator",
  12. [ dijit._Widget, dijit._Templated ],
  13. {
  14. // summary:
  15. // A spacer between two `dijit.Toolbar` items
  16. templateString: '<div class="dijitToolbarSeparator dijitInline" role="presentation"></div>',
  17. buildRendering: function(){
  18. this.inherited(arguments);
  19. dojo.setSelectable(this.domNode, false);
  20. },
  21. isFocusable: function(){
  22. // summary:
  23. // This widget isn't focusable, so pass along that fact.
  24. // tags:
  25. // protected
  26. return false;
  27. }
  28. });
  29. }