Selected Themes: {{this.selectedThemes}}
Checkbox can either be used in multiple selection with other checkboxes or as a single checkbox to provide a boolean value.
+Multiple mode is enabled by default, v-model property refers to an array to bind the selected values.
+As v-model is two-way binding enabled, prepopulating the model array with values is enough to display the related + checkboxes as checked by default.
+Name | +Type | +Default | +Description | +
---|---|---|---|
inputId | +string | +null | +Unique identifier of the inner native checkbox. | +
value | +any | +null | +Value of the checkbox. | +
name | +string | +null | +Name of the checkbox element . | +
disabled | +boolean | +false | +When present, it specifies that the element value cannot be altered. | +
modelValue | +any | +null | +Value of the checkbox. | +
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-chkbox-box | +Container of icon. | +
p-chkbox-icon | +Icon element. | +
p-chkbox-label | +Label element. | +
None.
+