##// END OF EJS Templates
* tsx/{Xxx}Context renamed to tsx/{Xxx}Rendition, for old types made...
* tsx/{Xxx}Context renamed to tsx/{Xxx}Rendition, for old types made compatibility stubs with @deprected comments * Improved handling of functional component output, added support for boolean, null, undefined and widgets. * RenditionBase: fixed startup for the DocumentFragment nodes * startupWidgets: fixed startup of the widget when passed domNode of the widget. * DjxFragment converted to the functional component

File last commit:

r2:8ec37bf1b4d1 default
r63:1a0018655d1c v1.1.0 default
Show More
_FocusMixin.d.ts
42 lines | 1.1 KiB | video/mp2t | TypeScriptLexer
import { DeclareConstructor } from "dojo/_base/declare";
import { FocusManager } from "./focus";
declare module "./_WidgetBase" {
interface _WidgetBase {
/**
* This widget or a widget it contains has focus, or is "active" because
* it was recently clicked.
*/
focused: boolean;
/**
* Called when the widget becomes "active" because
* it or a widget inside of it either has focus, or has recently
* been clicked.
*/
onFocus(): void;
/**
* Called when the widget stops being "active" because
* focus moved to something outside of it, or the user
* clicked somewhere outside of it, or the widget was
* hidden.
*/
onBlur(): void;
}
}
interface _FocusMixin {
_focusManager: FocusManager;
}
declare module "dojo/_base/kernel" {
interface Dijit {
_FocusMixin: _FocusMixinConstructor;
}
}
type _FocusMixinConstructor = DeclareConstructor<_FocusMixin>;
declare const _FocusMixin: _FocusMixinConstructor;
export = _FocusMixin;