PromucFlow_constructor/app/client/src/widgets/CheckboxGroupWidget/constants.ts
Paul Li f0fb061dbd
feat: Checkbox group should have a select all option (#8744)
* feat: Checkbox group should have a select all option

-- Add a new property, isSelectAll
-- Implement its functionality

* feat: Checkbox group should have a select all option

-- Set height to auto for select all control
-- Move isInline and isSelectAll properties below isDisabled
-- Set color for options to GREY_9 and GREY_10
-- Add Cypress test cases for handleSelectAllChange

* feat: Checkbox group should have a select all option

-- Fix on misalignment of select all control if isInline is true
-- Refactor the cypress test cases which is affected by adding select all control

* feat: Checkbox group should have a select all option

-- Set white-space to nowrap

* feat: Checkbox group widget should have a select all option

-- Change helpText for isSelectAll property

* feat: Checkbox group should have a select all option

-- Fix on broken test cases for the select all option

Co-authored-by: Arpit Mohan <arpit@appsmith.com>
2022-01-11 21:26:50 +08:00

16 lines
357 B
TypeScript

export interface OptionProps {
/** Label text for this option. If omitted, `value` is used as the label. */
label?: string;
/** Value of this option. */
value: string;
}
export enum SelectAllStates {
CHECKED = "CHECKED",
UNCHECKED = "UNCHECKED",
INDETERMINATE = "INDETERMINATE",
}
export type SelectAllState = keyof typeof SelectAllStates;