A model can be bound using the standard v-model directive.
+Name | +Type | +Default | +Description | +
---|---|---|---|
inputId | +string | +null | +Unique identifier of the native checkbox element. | +
value | +any | +null | +Value of the TriStateCheckbox. | +
name | +string | +null | +Name of the checkbox element . | +
disabled | +boolean | +false | +When present, it specifies that the element value cannot be altered. | +
autocomplete | +string | +null | +When specifies, whether or not an the element should have autocomplete enabled. | +
autofocus | +boolean | +false | +When present, it specifies that the element should automatically get focus when the page loads. | +
Name | +Parameters | +Description | +
---|---|---|
change | +event: Browser event | +Callback to invoke on value change. | +
input | +event: Value of checkbox | +Callback to invoke on click. | +
click | +event: Browser event | +Callback to invoke click. | +
focus | +event: Browser event | +Callback to invoke on focus. | +
blur | +event: Browser event | +Callback to invoke on blur. | +
Following is the list of structural style classes, for theming classes visit
Name | +Element | +
---|---|
p-chkbox | +Container element | +
p-tristatechkbox | +Container element | +
p-chkbox-box | +Container of icon. | +
p-chkbox-icon | +Icon element. | +
None.
+