Checkbox
Custom checkbox input.
Interface: ICheckBox.
See the parameters of this component in storybook.
Example
import {Actions, type ICheckbox, type IMessage} from "@onlyoffice/docspace-plugin-sdk"
const onChange = () => {
cbProps.isChecked = !cbProps.isChecked
const message: IMessage = {
actions: [Actions.updateProps],
newProps: cbProps,
}
return message
}
const cbProps: ICheckbox = {
label: "Checkbox",
title: "Checkbox",
isChecked: false,
onChange,
}