Class type Goog.​Ui.​imagelessButtonRenderer

class type [#button]imagelessButtonRenderer = object..end

Inherits


method createButton : 
controlContent ->
Goog.Gdom.domHelper Js.t -> Dom_html.element Js.t Js.meth

Takes a text caption or existing DOM structure, and returns the content wrapped in a pseudo-rounded-corner box. Creates the following DOM structure: <div class="goog-inline-block goog-imageless-button-outer-box"> <div class="goog-inline-block goog-imageless-button-inner-box"> <div class="goog-imageless-button-pos"> <div class="goog-imageless-button-top-shadow">&nbsp;</div> <div class="goog-imageless-button-content">Contents...</div> </div> </div> </div> Used by both #createDom and #decorate. To be overridden by subclasses. Returns Pseudo-rounded-corner box containing the content.

method createDom : (#button as 'a) Js.t -> Dom_html.element Js.t Js.meth

Returns the button's contents wrapped in the following DOM structure: <div class="goog-inline-block goog-imageless-button"> <div class="goog-inline-block goog-imageless-button-outer-box"> <div class="goog-imageless-button-inner-box"> <div class="goog-imageless-button-pos-box"> <div class="goog-imageless-button-top-shadow">&nbsp;</div> <div class="goog-imageless-button-content">Contents...</div> </div> </div> </div> </div> Overrides goog.ui.ButtonRenderer#createDom. Returns Root element for the button.

method getContentElement : 
'b. (#Dom_html.element as 'b) Js.t -> Dom_html.element Js.t Js.meth
method getCssClass : Js.js_string Js.t Js.meth

Returns the CSS class to be applied to the root element of components rendered using this renderer. Returns Renderer-specific CSS class.