mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.81k stars 1.98k forks source link

Cloumn formatting - Prefix dots while text is trimmed #1162

Closed dileepkumars1 closed 7 years ago

dileepkumars1 commented 7 years ago

Hi,

Is there any way to prefix the dots instead of suffixing the same while the value is not fit into the column? I have a numeric column for which the last digits should not be trimmed when not fit in cell.

Any possibilities? Please help

6pac commented 7 years ago

I think the dots may be put there by the web browser when the value is too long to fit in the cell. If so, it's automatic. You could write a formatter to truncate and add leading dots, it wouldn't be too hard. See the formatter example and Google about leading truncation with ellipsis

dileepkumars1 commented 7 years ago

Thank you for the prompt response. It is apt for my requirement.