@univerjs/ui v0.5.0-beta.1 • 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 | submodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:32 |
value ? | string | number | submodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:26 |
value$ ? | Observable <T > | submodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:28 |
onChange() ? | void | submodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:30 |
Type Parameters
Type Parameter | Default type |
---|---|
T | undefined |
Defined in
submodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:25