UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

34 lines (29 loc) 1.59 kB
/// <reference path="../../../globals.d.ts" /> /// <reference path="./button.d.ts" /> /// <reference path="./controlcontent.d.ts" /> /// <reference path="./buttonrenderer.d.ts" /> /// <reference path="../dom/dom.d.ts" /> declare module goog.ui { class CustomButton extends CustomButton__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class CustomButton__Class extends goog.ui.Button__Class { /** * A custom button control. Identical to {@link goog.ui.Button}, except it * defaults its renderer to {@link goog.ui.CustomButtonRenderer}. One could * just as easily pass {@code goog.ui.CustomButtonRenderer.getInstance()} to * the {@link goog.ui.Button} constructor and get the same result. Provided * for convenience. * * @param {goog.ui.ControlContent} content Text caption or existing DOM * structure to display as the button's caption. * @param {goog.ui.ButtonRenderer=} opt_renderer Optional renderer used to * render or decorate the button; defaults to * {@link goog.ui.CustomButtonRenderer}. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for * document interaction. * @constructor * @extends {goog.ui.Button} */ constructor(content: goog.ui.ControlContent, opt_renderer?: goog.ui.ButtonRenderer, opt_domHelper?: goog.dom.DomHelper); } }