##// END OF EJS Templates
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods

File last commit:

r2:8ec37bf1b4d1 default
r30:a46488b209e8 v1.0.0-rc14 default
Show More
PopupMenuItem.d.ts
27 lines | 951 B | video/mp2t | TypeScriptLexer
/ src / typings / dijit / PopupMenuItem.d.ts
cin
created typings for basic part of dojo and dijit further work is required to...
r2 import MenuItem = require("./MenuItem");
import { _WidgetBaseConstructor } from "./_WidgetBase";
/**
* An item in a Menu that spawn a drop down (usually a drop down menu)
*/
interface PopupMenuItem extends MenuItem {
/**
* When Menu is declared in markup, this code gets the menu label and the popup widget from the srcNodeRef.
*
* srcNodeRef.innerHTML contains both the menu item text and a popup widget
* The first part holds the menu item text and the second part is the popup
*/
_fillContent(source: Element): void;
/**
* Open the popup to the side of/underneath this MenuItem, and optionally focus first item
*/
_openPopup(params: { around?: Element; popup?: Function }, focus?: boolean): void;
_closePopup(): void;
}
interface PopupMenuItemConstructor extends _WidgetBaseConstructor<PopupMenuItem> { }
declare const PopupMenuItem: PopupMenuItemConstructor;
export = PopupMenuItem;