UNPKG

@omnia/fx

Version:

Provide Omnia Fx typings and tooling for clientside Omnia development.

36 lines (35 loc) 948 B
import { GuidValue } from "../../models"; import { TsxAllowUnknowProperties } from "../TsxAllowUnknowProperties"; export type SelectionTypeId = GuidValue; export declare class SelectionToken implements SelectionItem<string> { title: string; value: string; typeId: GuidValue; static typeId: SelectionTypeId; } export interface SelectionItem<T> { title: string; value: T; typeId: SelectionTypeId; } export interface ISelection { items: SelectionItem<any>[]; valueBind: SelectionItem<any>; onValueChanged?: (model: SelectionItem<any>) => void; label?: string; filled?: boolean; disabled?: boolean; loading?: boolean; dark?: boolean; } declare global { namespace VueTsxSupport.JSX { interface Element { } interface ElementClass { } interface IntrinsicElements { "omfx-selection": TsxAllowUnknowProperties<ISelection>; } } }