Class type Goog.​Ui.​flatMenuButtonRenderer

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

Inherits


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

Takes a text caption or existing DOM structure, and returns it wrapped in an appropriately-styled DIV. Creates the following DOM structure: <div class="goog-inline-block goog-flat-menu-button-caption"> Contents... </div> Returns Caption element.

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-flat-menu-button"> <div class="goog-inline-block goog-flat-menu-button-caption"> Contents... </div> <div class="goog-inline-block goog-flat-menu-button-dropdown"> &nbsp; </div> </div> Overrides. Returns Root element for the button.

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

Returns an appropriately-styled DIV containing a dropdown arrow element. Creates the following DOM structure: <div class="goog-inline-block goog-flat-menu-button-dropdown"> &nbsp; </div> Returns Dropdown element.

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

Takes an element, decorates it with the menu button control, and returns the element. Overrides by looking for a child element that can be decorated by a menu, and if it finds one, decorates it and attaches it to the menu button. Returns Decorated element.

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

Takes the button's root element and returns the parent element of the button's contents. Returns The button's content element (if any).

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.