BaseControl

View as Markdown

Properties shared by every .

TypeScript
export interface BaseControl<TData = any,

Properties

PropertyTypeDescriptionDefault
disabledValueOrFunction<boolean, CTX>Whether the Control is disabled - static boolean or a function of the context
hiddenValueOrFunction<boolean, CTX>Whether the Control is hidden - static boolean or a function of the context
iconValueOrFunction<AdaptableIcon, CTX>Icon for the Control - static AdaptableIcon or a function of the context
iconPosition'start' | 'end'Where the icon appears relative to the label'start'
idstringOptional stable identifier for the Control (useful for testing / targeting)
labelValueOrFunction<string, CTX>Label for the Control - static string or a function of the context
styleValueOrFunction<ButtonStyle, CTX>Style for the Control - static ButtonStyle or a function of the context
tooltipValueOrFunction<string, CTX>Tooltip for the Control - static string or a function of the context

Property Details

disabled

Whether the Control is disabled - static boolean or a function of the context

TypeScript
disabled?: ValueOrFunction<boolean, CTX>;
Property Value

ValueOrFunction<boolean, CTX>

hidden

Whether the Control is hidden - static boolean or a function of the context

TypeScript
hidden?: ValueOrFunction<boolean, CTX>;
Property Value

ValueOrFunction<boolean, CTX>

icon

Icon for the Control - static AdaptableIcon or a function of the context

TypeScript
icon?: ValueOrFunction<AdaptableIcon, CTX>;
Property Value

ValueOrFunction<AdaptableIcon, CTX>

iconPosition

Where the icon appears relative to the label

TypeScript
iconPosition?: 'start' | 'end';
Default Value

'start'

Property Value

'start' | 'end'

id

Optional stable identifier for the Control (useful for testing / targeting)

TypeScript
id?: string;
Property Value

string

label

Label for the Control - static string or a function of the context

TypeScript
label?: ValueOrFunction<string, CTX>;
Property Value

ValueOrFunction<string, CTX>

style

Style for the Control - static ButtonStyle or a function of the context

TypeScript
style?: ValueOrFunction<ButtonStyle, CTX>;
Property Value

ValueOrFunction<ButtonStyle, CTX>

tooltip

Tooltip for the Control - static string or a function of the context

TypeScript
tooltip?: ValueOrFunction<string, CTX>;
Property Value

ValueOrFunction<string, CTX>