tonytomov / jqGrid

jQuery grid plugin
www.trirand.com
2.84k stars 1.2k forks source link

Support objects on $.jgrid.template #1035

Closed erikn69 closed 1 year ago

erikn69 commented 1 year ago

This allow us to do

$.jgrid.template(
    'START {0} {1} {test1} {test2} {test3} END',
    '000',
    '111',
    { test1: 'A' },
    { test3: () => 'C',  test2: 'B' }
);
// result: 'START 000 111 A B C END'
tonytomov commented 1 year ago

Thanks. I find this very useful.