Skip to content

Default Value of HCheckBox #1

@nlon982

Description

@nlon982

I noticed HCheckBox's value is set to nothing at all despite being the state unticked - so it requires ticking and unticking to finally yield 0 when calling isChecked(). Note unticked corresponds with 0, and ticked corresponds with 1.

I assume this behavior isn't intended? I can attest that it's most definitely is helpful to have it set to 0 from the get go (and no doubt goes along with coding principles).

A quick and dirty fix is this if you want to add that:
image

To avoid meddling with the library, i'm currently doing it myself in my code, i.e.:
image

Anyway, thank you heaps for making this library!

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