UNPKG

slickgrid

Version:

A lightning fast JavaScript grid/spreadsheet

9 lines 959 B
/** * SlickGrid v3.0.4 * (c) 2009-present Michael Leibman * homepage: http://github.com/mleibman/slickgrid * license: MIT * date: 2023-02-15 * file: ./plugins/slick.cellrangedecorator.js */ !function(n){n.extend(!0,window,{Slick:{CellRangeDecorator:function(o,s){var l;function e(){l&&(l.remove(),l=null)}s=n.extend(!0,{},{selectionCssClass:"slick-range-decorator",selectionCss:{zIndex:"9999",border:"2px dashed red"},offset:{top:-1,left:-1,height:-2,width:-2}},s),n.extend(this,{pluginName:"CellRangeDecorator",show:function(e){l=l||n("<div></div>",{css:s.selectionCss}).addClass(s.selectionCssClass).css("position","absolute").appendTo(o.getActiveCanvasNode());var t=o.getCellNodeBox(e.fromRow,e.fromCell),e=o.getCellNodeBox(e.toRow,e.toCell);return t&&e&&s&&s.offset&&l.css({top:t.top+s.offset.top,left:t.left+s.offset.left,height:e.bottom-t.top+s.offset.height,width:e.right-t.left+s.offset.width}),l},hide:e,destroy:function(){e()}})}}})}(jQuery);