Introduction

We’d like to introduce you a new mold for Checkbox component: TriState.
TriState mold is used to select either “checked”, “unchecked” or “indeterminate” as the value. With this feature,¬†you can offer more diverse options for your users.

Demo

You can switch between the three states by clicking the checkbox or pressing the space key.

ZUL

<zk>
  <checkbox mold="tristate" />
</zk>

API

getState(): call this method to get the state (“checked”, “unchecked” or “indeterminate”) of the Checkbox depending on the indeterminate and checked properties.

I hope you liked the new mold. If you have any questions or require any further information, feel free to contact us!

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply