UNPKG

@wix/design-system

Version:

@wix/design-system

41 lines (38 loc) 1.11 kB
### dataHook - type: string - description: Applied as data-hook HTML attribute that can be used in the tests ### styles - type: string - description: No description ### title - type: string - description: The editable selector's title ### toggleType - type: "checkbox" | "radio" - description: Specifies the type of the toggle - default: 'checkbox' ### newRowLabel - type: string - description: Text for the add new row button - default: 'New Row' ### editButtonText - type: string - description: Text for the edit button - default: 'Edit' ### onOptionAdded - type: (title: string) => void - description: New option added callback function ### onOptionEdit - type: (title: string, id: number) => void - description: Option edited callback function ### onOptionDelete - type: (id: number) => void - description: Option deleted callback function ### onOptionToggle - type: (id: number) => void - description: Option toggled callback function ### options - type: EditableSelectorOption[] - description: Array of objects: * `title` - the title of the option. * `isSelected` - whether this option is selected or not.