dojox/html/ellipsis.js

  • Provides:

    • dojox.html.ellipsis
  • dojox.html.ellipsis

    • type
      Object
    • summary
      offers cross-browser support for text-overflow: ellipsis
    • description
      Add "dojoxEllipsis" on any node that you want to ellipsis-ize. In order to function properly,
      the node with the dojoxEllipsis class set on it should be a child of a node with a defined width.
      It should also be a block-level element (i.e. <div>) - it will not work on td elements.
      NOTE: When using the dojoxEllipsis class within tables, the table needs to have the table-layout: fixed style
  • fx

    • type
      Function
    • source: [view]
         d.forEach(s[fn].apply(s, [opt]), function(n){
          if(!n || n._djx_ellipsis_done){ return; }
          n._djx_ellipsis_done = true;
          if(createXULEllipsis && n.textContent == n.innerHTML && !hc(n, "dojoxEllipsisSelectable")){
           // We can do the faster XUL version, instead of calculating
           createXULEllipsis(n);
          }else{
           createIFrameEllipsis(n);
          }
         });
    • summary
  • dojox.html

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary