JSFiddle - React, Tailwind, and code Playground

by houssamk

HTML

<div id="grid"></div>

JavaScript

$(function () {
    var columns = [
        {
            field: "ResourceName",
            title: "ResourceName",
        },                
        {
            field: "boolVal",
            title: "Bool Val",
            type: "boolean",
            template: '<input type="checkbox" #= boolVal ? checked="checked" : "" # disabled="disabled" ></input>'
        }
    ];
    
    var localData = [
        { boolVal: true, intVal: 1 },
        { boolVal: false, intVal: 2 }
    ];
    
    $('#grid').kendoGrid({
            scrollable: false,
            sortable: true,
            resizable: true,
            reorderable: false,
            dataSource: localData,
            columns: columns,
            editable: "incell",
    });        
});