javascript - How to show text overflow ellipsis in the middle of the text -
am using kendo grid fixed width. if text more showing ellipsis. can differentiate rows based on end of string. due effect unable find it. so, need ellipsis in middle of text. example: abcdefghijklm abcdefg... -> normal ellipse abcd...klm -> want need type of output one approach follows, though – of course – rely on javascript: function centralellipsis(opts) { // default settings, can overridden // user: var settings = { // number of original characters show: 'maxlength': 7, // character-sequence, or html character- // entity use replace missing characters: 'ellipsis': '…', // attribute you'd write // original text (this function write // text 'title' attribute though): 'writetoattribute': 'data-originaltext' }, // element upon we're working (cached // because we'll access more once): _this...