Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
type SelectItem<
|
|
|
|
ValueType = string,
|
|
|
|
DisplayValueType = ValueType | import('react').ReactNode,
|
|
|
|
> = {
|
|
|
|
displayValue?: DisplayValueType;
|
|
|
|
value: ValueType;
|
|
|
|
};
|
|
|
|
|
|
|
|
type OperateSelectItemFunction = (value: string) => boolean;
|
|
|
|
|
|
|
|
type SelectWithLabelOptionalProps = {
|
|
|
|
checkItem?: OperateSelectItemFunction;
|
|
|
|
disableItem?: OperateSelectItemFunction;
|
|
|
|
hideItem?: OperateSelectItemFunction;
|
|
|
|
isCheckableItems?: boolean;
|
|
|
|
isReadOnly?: boolean;
|
|
|
|
inputLabelProps?: Partial<
|
|
|
|
import('../components/OutlinedInputLabel').OutlinedInputLabelProps
|
|
|
|
>;
|
|
|
|
label?: string;
|
|
|
|
messageBoxProps?: Partial<import('../components/MessageBox').MessageBoxProps>;
|
|
|
|
selectProps?: Partial<SelectProps>;
|
|
|
|
};
|
|
|
|
|
|
|
|
type SelectWithLabelProps = SelectWithLabelOptionalProps &
|
|
|
|
Pick<SelectProps, 'onChange' | 'value'> & {
|
|
|
|
id: string;
|
|
|
|
selectItems: Array<SelectItem | string>;
|
|
|
|
};
|