EllipsableCheckbox.js 944 B

12345678910111213141516171819202122232425262728293031
  1. "use strict";
  2. /*
  3. *+------------------------------------------------------------------------+
  4. *| Licensed Materials - Property of IBM
  5. *| IBM Cognos Products: Content Explorer
  6. *| (C) Copyright IBM Corp. 2017
  7. *|
  8. *| US Government Users Restricted Rights - Use, duplication or disclosure
  9. *| restricted by GSA ADP Schedule Contract with IBM Corp.
  10. *+------------------------------------------------------------------------+
  11. */
  12. define(['q', 'bi/commons/ui/properties/CheckBox'], function (Q, CheckBox) {
  13. 'use strict'; //NOSONAR
  14. var EllipsableCheckbox = CheckBox.extend({
  15. init: function init(options) {
  16. EllipsableCheckbox.inherited('init', this, arguments);
  17. },
  18. doRender: function doRender() {
  19. EllipsableCheckbox.inherited('doRender', this, arguments);
  20. if (this.ellipses) {
  21. $(this.$el.find('#label' + this.id)).addClass("ellipses");
  22. }
  23. return;
  24. }
  25. });
  26. return EllipsableCheckbox;
  27. });