Skip to content

Override bool formatter #9

Description

@umpirsky

bool_formatter need to be overriden, this is what I came up with:

def tabler_bool_formatter(view, value, name):
    if value:
        return Markup(
            '<i class="ti ti-check text-green"></i>'
        )
    else:
        return Markup(
            '<i class="ti ti-x text-red"></i>'
        )
Image

It renders empty content without this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions