typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
50 lines (42 loc) • 2.08 kB
TypeScript
/// <reference path="../../../globals.d.ts" />
/// <reference path="./control.d.ts" />
/// <reference path="./controlcontent.d.ts" />
/// <reference path="./tabrenderer.d.ts" />
/// <reference path="../dom/dom.d.ts" />
declare module goog.ui {
class Tab extends Tab__Class { }
/** Fake class which should be extended to avoid inheriting static properties */
class Tab__Class extends goog.ui.Control__Class {
/**
* Tab control, designed to be hosted in a {@link goog.ui.TabBar}. The tab's
* DOM may be different based on the configuration of the containing tab bar,
* so tabs should only be rendered or decorated as children of a tab bar.
* @param {goog.ui.ControlContent} content Text caption or DOM structure to
* display as the tab's caption (if any).
* @param {goog.ui.TabRenderer=} opt_renderer Optional renderer used to render
* or decorate the tab.
* @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for
* document interaction.
* @constructor
* @extends {goog.ui.Control}
*/
constructor(content: goog.ui.ControlContent, opt_renderer?: goog.ui.TabRenderer, opt_domHelper?: goog.dom.DomHelper);
/**
* @return {string|undefined} Tab tooltip text (if any).
*/
getTooltip(): string|any /*undefined*/;
/**
* Sets the tab tooltip text. If the tab has already been rendered, updates
* its tooltip.
* @param {string} tooltip New tooltip text.
*/
setTooltip(tooltip: string): void;
/**
* Sets the tab tooltip text. Considered protected; to be called only by the
* renderer during element decoration.
* @param {string} tooltip New tooltip text.
* @protected
*/
setTooltipInternal(tooltip: string): void;
}
}