Interface IFocusableControl
interface IFocusableControl {
focusBorderColor?: string;
tabIndex?: number;
blur(): void;
focus(): void;
keepsFocusWith(): Nullable<Control[]>;
onBlur(): void;
onFocus(): void;
processKeyboard(evt: IKeyboardEvent): void;
}
focusBorderColor?: string;
tabIndex?: number;
blur(): void;
focus(): void;
keepsFocusWith(): Nullable<Control[]>;
onBlur(): void;
onFocus(): void;
processKeyboard(evt: IKeyboardEvent): void;
}
Implemented by
Properties
Optionalfocus Border Color
focusBorderColor?: string
Gets or sets the color used to draw the focus border Defaults to "white"
Optionaltab Index
tabIndex?: number
Gets or sets the tabIndex of the control
Methods
blur
-
Function to unfocus the control programmatically
Returns void
focus
-
Function to focus the control programmatically
Returns void
keeps Focus With
-
Function called to get the list of controls that should not steal the focus from this control
Returns Nullable<Control[]>
an array of controls
on Blur
-
Function called when the control loses the focus
Returns void
on Focus
-
Function called when the control receives the focus
Returns void
process Keyboard
-
Function called to let the control handle keyboard events
Parameters
- evt: IKeyboardEvent
defines the current keyboard event
Returns void
- evt: IKeyboardEvent
Interface used to define a control that can receive focus