CRUDUI

Home > @polyspec/crudui-generator-core > CheckboxVM

CheckboxVM interface

A standalone checkbox or switcher whose caption is its own label.

Signature:

export interface CheckboxVM 

Properties

Property

Modifiers

Type

Description

attributes?

Record<string, string>

(Optional) Declared attributes (design.attributes), present only when declared.

caption?

string

(Optional) Caption text; absent when an inline layout writes the label in the node header.

checked

boolean

Checked state from the bound data.

className

string

Control class.

id

string

Control identifier.

name

string

Submission name.

role?

'switch'

(Optional) switch for a switcher field (docs/spec/form-markup.md, Switches); absent for a checkbox.