KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Column of boolean values not converting to checkboxes within a Data Grid Re: Column of boolean values not converting to checkboxes within a Data Grid

  • ivankk

    Member
    February 16, 2024 at 12:00 am

    Checkboxes can be rendered by configuring “Columns > Column x > Template”.
    Once in template editor, you have to switch to “Advanced mode” and use Handlebars template to render the content, you can try this:

    {{#if thisRawValue}} <i class="mi mi-check-box" style="color: #38a338"></i> {{else}} <i class="mi mi-check-box-outline-blank" style="color: #c0c0c0"></i> {{/if}}

    This example uses material icons, you can also use font-awesome icons as both are supported.