jsgrid icon indicating copy to clipboard operation
jsgrid copied to clipboard

How can I call default rowRenderer from a custom rowRenderer ?

Open gian-paolo opened this issue 4 years ago • 1 comments

Help Request/Question I would like to use custom rowRenderer only when the page width is less than a defined limit.

    rowRenderer: function(item) {
        if(screen.width < 800){
            customString = 'example';
            return $("<tr>").append($("<td>").append(customString);
        }else{
            //call default function
            return ...
        }
    },

Thank you

gian-paolo avatar Jul 06 '21 11:07 gian-paolo

I'm trying something like this: rowRenderer: function(item, itemIndex) { if(screen.width < 800){ //custom render }else{ //call default function $result = $("<tr>"); this._renderCells($result, item); return $result; } },

gian-paolo avatar Jul 07 '21 12:07 gian-paolo