VerticalRuleLabels.js 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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.form.VerticalRuleLabels"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dijit.form.VerticalRuleLabels"] = true;
  8. dojo.provide("dijit.form.VerticalRuleLabels");
  9. dojo.require("dijit.form.HorizontalRuleLabels");
  10. dojo.declare("dijit.form.VerticalRuleLabels", dijit.form.HorizontalRuleLabels,
  11. {
  12. // summary:
  13. // Labels for the `dijit.form.VerticalSlider`
  14. templateString: '<div class="dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV"></div>',
  15. _positionPrefix: '<div class="dijitRuleLabelContainer dijitRuleLabelContainerV" style="top:',
  16. _labelPrefix: '"><span class="dijitRuleLabel dijitRuleLabelV">',
  17. _calcPosition: function(pos){
  18. // Overrides HorizontalRuleLabel._calcPosition()
  19. return 100-pos;
  20. },
  21. // needed to prevent labels from being reversed in RTL mode
  22. _isHorizontal: false
  23. });
  24. }