rstaib / jquery-bootgrid

Nice, sleek and intuitive. A grid control especially designed for bootstrap.
http://www.jquery-bootgrid.com
MIT License
972 stars 364 forks source link

Line break in cell #291

Closed jerearaujo03 closed 7 years ago

jerearaujo03 commented 8 years ago

There is a way to make visible a <br> inside a cell? Because the render of <br> is not visible.

jerearaujo03 commented 7 years ago
converters: {
    //receives array and shows each element in each line inside the cell
    listDisplay: {
        from: function(value) {
        return value;
    },
    to: function(value) {
        // Here you can customize value
        value = JSON.parse(value); //converts the received json into a js array.
        value.sort();
        value = value.join("<br>");
        return value;
    }
}