@univerjs/ui v0.4.2 • Docs
Type Alias: ICustomLabelProps<T>
type ICustomLabelProps<T>: {
title: React.ReactNode;
value: string | number;
value$: Observable<T>;
onChange: void;
} & Pick<IMenuSelectorItem<unknown>, "label" | "icon">;
Type declaration
Name | Type | Defined in |
---|---|---|
title | React.ReactNode | packages/ui/src/components/custom-label/CustomLabel.tsx:32 (opens in a new tab) |
value | string | number | packages/ui/src/components/custom-label/CustomLabel.tsx:26 (opens in a new tab) |
value$ | Observable <T > | packages/ui/src/components/custom-label/CustomLabel.tsx:28 (opens in a new tab) |
onChange | void | packages/ui/src/components/custom-label/CustomLabel.tsx:30 (opens in a new tab) |
Type Parameters
Type Parameter | Default type |
---|---|
T | undefined |
Defined in
packages/ui/src/components/custom-label/CustomLabel.tsx:25 (opens in a new tab)