Checkbox

Custom checkbox input.

Interface: ICheckBox.

See the parameters of this component in storybook.

Checkbox

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,
}

Get Help

  • If you have any questions about ONLYOFFICE DocSpace, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).