jquery-bootgrid icon indicating copy to clipboard operation
jquery-bootgrid copied to clipboard

Data cell formatting

Open skiokko opened this issue 8 years ago • 7 comments

First of all: Great plugin, the best found on all web. Only error is data formatter, is a great way to manipulate cells but if this is only way its a incredibile limitation, i want insert a image, a link, or everything...i must create formatter for everything.

Simple remove formatter and leave HTML into the cell and work is done. Very simple. I tried to get HTML from formatter but get only text. Seem a very stupid problem, but cause many limitations.

Thank you for great work!

skiokko avatar Aug 27 '15 08:08 skiokko

I needed this feature too, I have made a little modification if you want you can use it.

https://gist.github.com/SaulBurgos/1cdb5bc03fd8e7801aee

lines modified are 285 with the comment //modify by saul

you only need specify an attribute in the td that you want see html code like this:

<tr>
    <td>
        <b>556565656</b>
    </td>
    <td>[email protected]</td>
    <td data-html="allow">
        <b>test</b> <i>italic text</i>
    </td>
</tr>

SaulBurgos avatar Sep 12 '15 15:09 SaulBurgos

Hi, Great, thank you very much!

skiokko avatar Sep 14 '15 13:09 skiokko

First, let me express that this plugin is absolutely awesome.

@SaulBurgos thanks for the tweak. This saved me from having to dig into the JS to create this override and it was necessary for my implementation. Would be nice if the API allowed the the data-type to be specified as html in the

and it would just passthrough the data cell vs reformatting, but I am by no means complaining.

sdezego avatar Oct 02 '15 16:10 sdezego

Save my day. Formatters is not simple as this solution.

andremacola avatar May 31 '16 14:05 andremacola

@SaulBurgos Your tweak should be a feature! Makes more sense to do this then have to do a formatter for each custom cell rendering i need. Thanks for your tweak and saving me a hassle lol!

surgiie avatar Jul 18 '16 20:07 surgiie

Why not to include such a important feature? Please add this to core features.

codeyash avatar Mar 19 '17 15:03 codeyash

Amazing fix, thank you so much for sharing it!

spellmn avatar Nov 20 '18 01:11 spellmn