You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
560 B
JavaScript
2 lines
560 B
JavaScript
/*! © SpryMedia Ltd - datatables.net/license */
|
|
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.render.ellipsis=function(a,l,n){function p(e){return(""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}return function(e,t,r){return"display"!==t?e:"number"!=typeof e&&"string"!=typeof e||(e=e.toString()).length<=a?n?p(e):e:(t=e.substr(0,a-1),l&&(t=t.replace(/\s([^\s]*)$/,"")),n&&(t=p(t)),'<span class="ellipsis" title="'+p(e)+'">'+t+"…</span>")}};export default DataTable; |