Skip to main content

tree_table/types/
checkbox.rs

1use crate::Val;
2use alloc::string::String;
3
4#[cfg_attr(feature = "tsify", derive(tsify::Tsify))]
5#[cfg_attr(feature = "tsify", tsify(from_wasm_abi))]
6#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
7#[derive(Debug, Clone, PartialEq)]
8pub struct Checkbox {
9    pub true_val: Val,
10    pub false_val: Val,
11    pub text: Option<String>,
12    pub state: bool,
13}