Module Goog.​Ui

module Ui : sig..end

type controlContent
module ControlContent : sig..end
class type idGenerator = object..end
val idGenerator : idGenerator Js.t Js.constr

Creates a new id generator.

module IdGenerator : sig..end
class type gaugeTheme = object..end
val gaugeTheme : gaugeTheme Js.t Js.constr

A class for the default color theme for a Gauge. Users can extend this class to provide a custom color theme, and apply the custom color theme by calling goog.ui.Gauge#setTheme.

class type autoComplete = object..end

This is the central manager class for an AutoComplete instance.

module AutoComplete : sig..end
module CharCounter : sig..end
class type charCounter = object..end
val charCounter : 
  (#Dom_html.element Js.t ->
   #Dom_html.element Js.t ->
   int ->
   CharCounter.Display.t Js.opt -> charCounter Js.t)
  Js.constr

CharCounter widget. Counts the number of characters in a input field or a text box and displays the number of additional characters that may be entered before the maximum length is reached.

module PopupBase : sig..end
class type popupBase = object..end
val popubBase : 
  (#Dom_html.element Js.t ->
   PopupBase.type_pre Js.opt -> popupBase Js.t)
  Js.constr
class type zippy = object..end
val zippy : 
  ((#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t Js.opt ->
   (#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t Js.opt ->
   bool Js.t Js.opt ->
   (#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t Js.opt ->
   zippy Js.t)
  Js.constr
val zippy_lazy : 
  ((#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t Js.opt ->
   (unit -> Dom_html.element Js.t) Js.callback ->
   bool Js.t Js.opt ->
   (#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t Js.opt ->
   zippy Js.t)
  Js.constr
class type animatedZippy = object..end
val animatedZippy : 
  ((#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t Js.opt ->
   (#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t Js.opt ->
   bool Js.t Js.opt -> animatedZippy Js.t)
  Js.constr
class type activityMonitor = object..end
val activityMonitor : 
  (Goog.Gdom.domHelper Js.t, Goog.Gdom.domHelper Js.t Js.js_array Js.t)
  Goog.Tools.Union.t -> activityMonitor Js.t Js.constr

Once initialized with a document, the activity monitor can be queried for the current idle time. TODO(user): Expand this class to allow it to monitor multiple DOMs.

class type component = object..end
val component : Goog.Gdom.domHelper Js.t Js.opt -> component Js.t Js.constr

Default implementation of component.

module Component : sig..end
class type iframeMask = object..end
val iframeMask : 
  Goog.Gdom.domHelper Js.t Js.opt ->
  Goog.Structs.pool Js.t Js.opt -> iframeMask Js.t Js.constr

Controller for an iframe mask. The mask is only valid in the current document, or else the document of the given DOM helper.

class type abstractImagelessRoundedCorner = object..end
module ImagelessRoundedCorner : sig..end
class type keyboardShortcutEvent = object..end
val keyboardShortcutEvent : 
  (Js.js_string Js.t ->
   Js.js_string Js.t ->
   (#Dom.node Js.t, #Goog.Events.eventTarget Js.t) Goog.Tools.Union.t
   Js.opt -> keyboardShortcutEvent Js.t)
  Js.constr

Object representing a keyboard shortcut event.

class type keyboardShortcutHandler = object..end
val keyboardShortcutHandler : 
  ((#Goog.Events.eventTarget Js.t, #Dom_html.eventTarget Js.t)
   Goog.Tools.Union.t Js.opt -> keyboardShortcutHandler Js.t)
  Js.constr

Component for handling keyboard shortcuts. A shortcut is registered and bound to a specific identifier. Once the shortcut is triggered an event is fired with the identifier for the shortcut. This allows keyboard shortcuts to be customized without modifying the code that listens for them.

Supports keyboard shortcuts triggered by a single key, a stroke stroke (key plus at least one modifier) and a sequence of keys or strokes.

class type bidiInput = object..end
val bidiInput : 
  (Goog.Gdom.domHelper Js.t Js.opt -> bidiInput Js.t) Js.constr
module Bubble : sig..end
class type bubble = object..end
val bubble : 
  ((Js.js_string Js.t, #Dom_html.element Js.t) Goog.Tools.Union.t ->
   bubble Js.t)
  Js.constr
class type charPicker = object..end
val charPicker : 
  (Goog.I18n.charPickerData Js.t ->
   Js.js_string Js.t Js.js_array Js.t ->
   int Js.opt ->
   int Js.opt ->
   int Js.opt ->
   int Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> charPicker Js.t)
  Js.constr
class type control = object..end
class type [#control]controlRenderer = object..end
val controlRenderer : #control controlRenderer Js.t Js.constr
val control : 
  controlContent ->
  control #controlRenderer Js.t ->
  Goog.Gdom.domHelper Js.t Js.opt -> control Js.t Js.constr
class type datePicker = object..end
val datePicker : 
  ((Goog.Date.date Js.t, Js.date Js.t) Goog.Tools.Union.t Js.opt ->
   Goog.I18n.dateTimeSymbols Js.opt -> datePicker Js.t)
  Js.constr
class type dialog = object..end
val dialog : 
  (Js.js_string Js.opt ->
   bool Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> dialog Js.t)
  Js.constr
class type drilldownRow = object..end
val drilldownRow : drilldownRow Js.t Js.constr

Builds a DrilldownRow component, which can overlay a tree structure onto sections of an HTML table.

class type formPost = object..end
val formPost : formPost Js.t Js.constr
class type gaugeColoredRange = object..end
val gaugeColoredRange : 
  (int -> int -> Js.js_string Js.t -> gaugeColoredRange Js.t)
  Js.constr

Information on how to decorate a range in the gauge. This is an internal-only class.

class type gauge = object..end
val gauge : 
  (int -> int -> Goog.Gdom.domHelper Js.t Js.opt -> gauge Js.t)
  Js.constr

A component that displays a gauge. A gauge displayes a current value within a round axis that represents a given range. The gauge is built from an external border, and internal border inside it, ticks and labels inside the internal border, and a needle that points to the current value.

module Gauge : sig..end
class type hsvPalette = object..end
val hsvPalette : 
  (Goog.Gdom.domHelper Js.t Js.opt ->
   Js.js_string Js.t Js.opt ->
   Js.js_string Js.t Js.opt -> hsvPalette Js.t)
  Js.constr

Creates an HSV palette. Allows a user to select the hue, saturation and value/brightness.

class type idleTimer = object..end
val idleTimer : 
  float Js.t ->
  activityMonitor Js.t Js.opt ->
  idleTimer Js.t Js.constr

Event target that will give notification of state changes between active and idle. This class is designed to require few resources while the user is active.

class type labelInput = object..end
val labelInput : 
  (Js.js_string Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> labelInput Js.t)
  Js.constr
class type mockActivityMonitor = object..end
val mockActivityMonitor : mockActivityMonitor Js.t Js.constr

A mock implementation of goog.ui.ActivityMonitor for unit testing. Clients of this class should override goog.now to return a synthetic time from the unit test.

class type popup = object..end
val popup : 
  (#Dom_html.element Js.t Js.opt ->
   Goog.Positioning.abstractPosition Js.t Js.opt -> popup Js.t)
  Js.constr
class type progressBar = object..end
val progressBar : progressBar Js.t Js.constr
module ProgressBar : sig..end
class type ratings = object..end
val ratings : ratings Js.t Js.constr

A Control used for rating things, i.e. videos on Google Video.

module Ratings : sig..end
class type baseRoundedPanel = object..end

Factory method that returns an instance of a BaseRoundedPanel.

module RoundedPanel : sig..end
class type scrollFloater = object..end
val scrollFloater : 
  (#Dom_html.element Js.t ->
   Goog.Gdom.domHelper Js.t Js.opt -> scrollFloater Js.t)
  Js.constr
module SliderBase : sig..end
class type sliderBase = object..end
val sliderBase : 
  (Goog.Gdom.domHelper Js.t Js.opt -> sliderBase Js.t) Js.constr

This creates a SliderBase object.

class type tableSorter = object..end
val tableSorter : 
  (Goog.Gdom.domHelper Js.t Js.opt -> tableSorter Js.t)
  Js.constr

A table sorter allows for sorting of a table by column. This component can be used to decorate an already existing TABLE element with sorting features. The TABLE should use a THEAD containing TH elements for the table column headers.

class type abstractSpellChecker = object..end
module Side : sig..end
class type button = object..end
class type [#button]buttonRenderer = object..end
val buttonRenderer : #button buttonRenderer Js.t Js.constr

Default renderer for goog.ui.Buttons. Extends the superclass with the following button-specific API methods:

  • getValue - returns the button element's value
  • setValue - updates the button element to reflect its new value
  • getTooltip - returns the button element's tooltip text
  • setTooltip - updates the button element's tooltip text
  • setCollapsed - removes one or both of the button element's borders

For alternate renderers, see goog.ui.NativeButtonRenderer, goog.ui.CustomButtonRenderer, and goog.ui.FlatButtonRenderer.

val button : 
  (controlContent ->
   button #buttonRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> button Js.t)
  Js.constr

A button control, rendered as a native browser button by default.

class type checkbox = object..end
val checkbox : (bool Js.t Js.opt -> checkbox Js.t) Js.constr
module Container : sig..end
class type container = object..end
class type [#container]containerRenderer = object..end
val containerRenderer : #container containerRenderer Js.t Js.constr
val container : 
  (Container.orientation_pre Js.opt ->
   container #containerRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> container Js.t)
  Js.constr
class type dimensionPicker = object..end
class type [dimensionPicker]dimensionPickerRenderer = object..end
val dimensionPicker : 
  (dimensionPicker dimensionPickerRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> dimensionPicker Js.t)
  Js.constr
val dimensionPickerRenderer : 
  dimensionPicker dimensionPickerRenderer Js.t Js.constr
class type hsvaPalette = object..end
val hsvaPalette : 
  (Goog.Gdom.domHelper Js.t Js.opt ->
   Js.js_string Js.t Js.opt ->
   float Js.opt -> Js.js_string Js.t Js.opt -> hsvaPalette Js.t)
  Js.constr

Creates an HSVA palette. Allows a user to select the hue, saturation, value/brightness and alpha/opacity.

class type inputDatePicker = object..end
val inputDatePicker : 
  (Goog.I18n.dateTimeFormat Js.t ->
   Goog.I18n.dateTimeParse Js.t ->
   datePicker Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> inputDatePicker Js.t)
  Js.constr
class type menuItem = object..end
class type [#control]menuItemRenderer = object..end
val menuItemRenderer : #menuItem menuItemRenderer Js.t Js.constr
val menuItem : 
  (controlContent ->
   Goog.Gdom.domHelper Js.t Js.opt ->
   menuItem #menuItemRenderer Js.t Js.opt ->
   menuItem Js.t)
  Js.constr
class type palette = object..end
class type [#control]paletteRenderer = object..end
val paletteRenderer : #palette paletteRenderer Js.t Js.constr
val palette : 
  (#Dom.node Js.t Js.js_array Js.t ->
   palette #paletteRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> palette Js.t)
  Js.constr
class type popupDatePicker = object..end
val popupDatePicker : 
  (datePicker Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> popupDatePicker Js.t)
  Js.constr

Popup date picker widget.

class type prompt = object..end
val prompt : 
  (Js.js_string Js.t ->
   Js.js_string Js.t ->
   (Js.js_string Js.t Js.opt -> bool Js.t) Js.callback ->
   prompt Js.t)
  Js.constr
class type separator = object..end
class type [#control]menuSeparatorRenderer = object..end
class type menuSeparator = object..end
val menuSeparator : 
  (Goog.Gdom.domHelper Js.t Js.opt -> menuSeparator Js.t)
  Js.constr
val menuSeparatorRenderer : 
  #menuSeparator menuSeparatorRenderer Js.t Js.constr
val separator : 
  (separator #menuSeparatorRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> separator Js.t)
  Js.constr
class type slider = object..end
val slider : (Goog.Gdom.domHelper Js.t Js.opt -> slider Js.t) Js.constr
class type tab = object..end
class type [#control]tabRenderer = object..end
val tab : 
  (controlContent ->
   tab #tabRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> tab Js.t)
  Js.constr

Tab control, designed to be hosted in a 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.

val tabRenderer : tab tabRenderer Js.t Js.constr

Default renderer for goog.ui.Tab, based on the TabPane code.

type state =  | INACTIVE | WAITING_TO_SHOW | SHOWING | WAITING_TO_HIDE | UPDATING
class type tooltip = object..end
val tooltip : 
  ((#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t Js.opt ->
   Js.js_string Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> tooltip Js.t)
  Js.constr
module TwoThumbSlider : sig..end
class type twoThumbSlider = object..end
val twoThumbSlider : 
  (Goog.Gdom.domHelper Js.t Js.opt -> twoThumbSlider Js.t)
  Js.constr

This creates a TwoThumbSlider object.

class type advancedTooltip = object..end
val advancedTooltip : 
  ((#Dom_html.element Js.t, Js.js_string Js.t) Goog.Tools.Union.t Js.opt ->
   Js.js_string Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> advancedTooltip Js.t)
  Js.constr

Advanced tooltip widget with cursor tracking abilities. Works like a regular tooltip but can track the cursor position and direction to determine if the tooltip should be dismissed or remain open.

class type checkBoxMenuItem = object..end
val checkBoxMenuItem : (controlContent -> checkBoxMenuItem Js.t) Js.constr

Class representing a checkbox menu item. This is just a convenience class that extends goog.ui.MenuItem by making it checkable.

class type colorPalette = object..end
val colorPalette : 
  (Js.js_string Js.t Js.js_array Js.t Js.opt ->
   palette #paletteRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> colorPalette Js.t)
  Js.constr
class type comboBox = object..end
val comboBox : (Goog.Gdom.domHelper Js.t Js.opt -> comboBox Js.t) Js.constr
class type comboBoxItem = object..end
val comboBoxItem : (Js.js_string Js.t -> comboBoxItem Js.t) Js.constr
class type containerScroller = object..end
val containerScroller : 
  (container Js.t -> containerScroller Js.t) Js.constr
class type [#button]css3ButtonRenderer = object..end
val css3ButtonRenderer : #button css3ButtonRenderer Js.t Js.constr
class type customButton = object..end
val customButton : 
  (controlContent ->
   customButton #buttonRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> customButton Js.t)
  Js.constr
class type [#button]customButtonRenderer = object..end
val customButtonRenderer : #button customButtonRenderer Js.t Js.constr
class type filterObservingMenuItem = object..end
val filterObservingMenuItem : 
  (controlContent ->
   Goog.Gdom.domHelper Js.t Js.opt ->
   filterObservingMenuItem #menuItemRenderer Js.t Js.opt ->
   filterObservingMenuItem Js.t)
  Js.constr

Class representing a filter observing menu item.

class type [#button]flatButtonRenderer = object..end
val flatButtonRenderer : #button flatButtonRenderer Js.t Js.constr

Flat renderer for goog.ui.Buttons. Flat buttons can contain almost arbitrary HTML content, will flow like inline elements, but can be styled like block-level elements.

class type menu = object..end
class type [#container]menuRenderer = object..end
val menuRenderer : #menu menuRenderer Js.t Js.constr
val menu : 
  (Goog.Gdom.domHelper Js.t Js.opt ->
   menu #menuRenderer Js.t Js.opt -> menu Js.t)
  Js.constr
class type [#button]nativeButtonRenderer = object..end
val nativeButtonRenderer : #button nativeButtonRenderer Js.t Js.constr

Renderer for goog.ui.Buttons. Renders and decorates native HTML button elements. Since native HTML buttons have built-in support for many features, overrides many expensive (and redundant) superclass methods to be no-ops.

class type option = object..end
val option : 
  (controlContent ->
   bool Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> option Js.t)
  Js.constr

Class representing a menu option. This is just a convenience class that extends link goog.ui.MenuItem by making it selectable.

class type plainTextSpellChecker = object..end
val plainTextSpellChecker : 
  (plainTextSpellChecker Js.t Goog.Spell.spellCheck Js.t ->
   Goog.Gdom.domHelper Js.t Js.opt -> plainTextSpellChecker Js.t)
  Js.constr
class type richTextSpellChecker = object..end
val richTextSpellChecker : 
  (richTextSpellChecker Js.t Goog.Spell.spellCheck Js.t ->
   Goog.Gdom.domHelper Js.t Js.opt -> richTextSpellChecker Js.t)
  Js.constr
module TabBar : sig..end
class type tabBar = object..end
class type [#container]tabBarRenderer = object..end
val tabBarRenderer : tabBar #tabBarRenderer Js.t Js.constr

Default renderer for goog.ui.TabBar, based on the TabPane code. The tab bar's DOM structure is determined by its orientation and location relative to tab contents. For example, a horizontal tab bar located above tab contents looks like this: <pre> <div class="goog-tab-bar goog-tab-bar-horizontal goog-tab-bar-top"> ...(tabs here)... </div> </pre>

val tabBar : 
  (TabBar.location_pre Js.opt ->
   tabBar #tabBarRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> tabBar Js.t)
  Js.constr

Tab bar component. A tab bar contains tabs, rendered above, below, before, or after tab contents. Tabs in tab bars dispatch the following events:

  • goog.ui.Component.EventType.ACTION when activated via the keyboard or the mouse,
  • goog.ui.Component.EventType.SELECT when selected, and
  • goog.ui.Component.EventType.UNSELECT when deselected. Clients may listen for all of the above events on the tab bar itself, and refer to the event target to identify the tab that dispatched the event. When an unselected tab is clicked for the first time, it dispatches both a SELECT event and an ACTION event; subsequent clicks on an already selected tab only result in events.
class type toggleButton = object..end
val toggleButton : 
  (controlContent ->
   toggleButton #buttonRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> toggleButton Js.t)
  Js.constr

A toggle button, with checkbox-like semantics. Rendered using goog.ui.CustomButtonRenderer by default, though any goog.ui.ButtonRenderer would work.

class type toolbar = object..end
class type [#container]toolbarRenderer = object..end
val toolbarRenderer : toolbar #toolbarRenderer Js.t Js.constr

Default renderer for goog.ui.Toolbar, based on goog.ui.ContainerRenderer.

val toolbar : 
  (toolbar #toolbarRenderer Js.t Js.opt ->
   Container.orientation_pre Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> toolbar Js.t)
  Js.constr
class type toolbarButton = object..end
val toolbarButton : 
  (controlContent ->
   toolbarButton #buttonRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> toolbarButton Js.t)
  Js.constr
class type toolbarSeparator = object..end
class type [separator]toolbarSeparatorRenderer = object..end
val toolbarSeparatorRenderer : 
  separator #toolbarSeparatorRenderer Js.t Js.constr

Renderer for toolbar separators.

val toolbarSeparator : 
  (separator #toolbarSeparatorRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> toolbarSeparator Js.t)
  Js.constr

A separator control for a toolbar.

module TriStateMenuItemRenderer : sig..end
class type [#control]triStateMenuItemRenderer = object..end
val triStateMenuItemRenderer : 
  #menuItem triStateMenuItemRenderer Js.t Js.constr

Default renderer for goog.ui.TriStateMenuItemRenderers. Each item has the following structure: <div class="goog-tristatemenuitem"> <div class="goog-tristatemenuitem-checkbox"></div> <div>...(content)...</div> </div>

type colors = Js.js_string Js.t Js.js_array Js.t
type color = Js.js_string Js.t
class type colorPicker = object..end
val colorPicker : 
  (Goog.Gdom.domHelper Js.t Js.opt ->
   colorPalette Js.t Js.opt -> colorPicker Js.t)
  Js.constr
module ColorPicker : sig..end
class type customColorPalette = object..end
val customColorPalette : 
  (Js.js_string Js.t Js.js_array Js.t ->
   customColorPalette #paletteRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> customColorPalette Js.t)
  Js.constr
class type filteredMenu = object..end
val filteredMenu : 
  (filteredMenu #menuRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> filteredMenu Js.t)
  Js.constr

Filtered menu class.

class type [#button]flatMenuButtonRenderer = object..end
val flatMenuButtonRenderer : #button flatMenuButtonRenderer Js.t Js.constr

Flat Menu Button renderer. Creates a simpler version of that doesn't look like a button and doesn't have rounded corners. Uses just a <div> and looks more like a traditional <select> element.

class type hoverCard = object..end
val hoverCard : 
  ((#Dom_html.element Js.t -> bool Js.t) ->
   bool Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> hoverCard Js.t)
  Js.constr

Create a hover card object. Hover cards extend tooltips in that they don't have to be manually attached to each element that can cause them to display. Instead, you can create a function that gets called when the mouse goes over any element on your page, and returns whether or not the hovercard should be shown for that element. Alternatively, you can define a map of tag names to the attribute name each tag should have for that tag to trigger the hover card. See example below. Hovercards can also be triggered manually by calling , shown without a delay by calling , or triggered over other elements by calling . For the latter two cases, the application is responsible for calling when finished. HoverCard objects fire a TRIGGER event when the mouse moves over an element that can trigger a hovercard, and BEFORE_SHOW when the hovercard is about to be shown. Clients can respond to these events and can prevent the hovercard from being triggered or shown.

class type [#button]imagelessButtonRenderer = object..end
val imagelessButtonRenderer : 
  #button imagelessButtonRenderer Js.t Js.constr

Custom renderer for goog.ui.Buttons. Imageless buttons can contain almost arbitrary HTML content, will flow like inline elements, but can be styled like block-level elements.

module ImagelessButtonRenderer : sig..end
class type [#button]linkButtonRenderer = object..end
val linkButtonRenderer : #button linkButtonRenderer Js.t Js.constr

Link renderer for goog.ui.Buttons. Link buttons can contain almost arbitrary HTML content, will flow like inline elements, but can be styled like block-level elements.

class type menuButton = object..end
val menuButton : 
  (controlContent ->
   menu Js.t Js.opt ->
   menuButton #buttonRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> menuButton Js.t)
  Js.constr
class type popupMenu = object..end
val popupMenu : 
  (Goog.Gdom.domHelper Js.t Js.opt ->
   popupMenu #menuRenderer Js.t Js.opt ->
   popupMenu Js.t)
  Js.constr

A basic menu class.

class type subMenu = object..end
val subMenu : 
  (controlContent ->
   Goog.Gdom.domHelper Js.t Js.opt ->
   subMenu #menuItemRenderer Js.t Js.opt ->
   subMenu Js.t)
  Js.constr
class type [#button]toolbarButtonRenderer = object..end
val toolbarButtonRenderer : 
  toolbarButton #toolbarButtonRenderer Js.t Js.constr

Toolbar-specific renderer for goog.ui.Button, based on goog.ui.CustomButtonRenderer.

module Tree : sig..end
module TriStateMenuItem : sig..end
class type triStateMenuItem = object..end

Class representing a three state checkbox menu item.

val triStateMenuItem : 
  (controlContent ->
   Goog.Gdom.domHelper Js.t Js.opt ->
   triStateMenuItem #menuItemRenderer Js.t Js.opt ->
   triStateMenuItem Js.t)
  Js.constr
class type [#button]menuButtonRenderer = object..end
val menuButtonRenderer : #menuButton menuButtonRenderer Js.t Js.constr
module MenuButtonRenderer : sig..end
class type popupColorPicker = object..end
val popupColorPicker : 
  (Goog.Gdom.domHelper Js.t Js.opt ->
   colorPicker Js.t Js.opt -> popupColorPicker Js.t)
  Js.constr

Popup color picker widget.

class type select = object..end
val select : 
  (controlContent Js.opt ->
   menu Js.t Js.opt ->
   select #buttonRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> select Js.t)
  Js.constr

A selection control. Extends goog.ui.MenuButton by composing a menu with a selection model, and automatically updating the button's caption based on the current selection.

class type toolbarMenuButton = object..end
val toolbarMenuButton : 
  (controlContent ->
   menu Js.t Js.opt ->
   toolbarMenuButton #buttonRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> toolbarMenuButton Js.t)
  Js.constr
class type toolbarToggleButton = object..end
val toolbarToggleButton : 
  (controlContent ->
   toolbarToggleButton #toolbarButtonRenderer Js.t
   Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> toolbarToggleButton Js.t)
  Js.constr

A toggle button control for a toolbar.

class type colorMenuButton = object..end
val colorMenuButton : 
  (controlContent ->
   menu Js.t Js.opt ->
   colorMenuButton #menuButtonRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t -> colorMenuButton Js.t)
  Js.constr

A color menu button control. Extends goog.ui.MenuButton by adding an API for getting and setting the currently selected color from a menu of color palettes.

class type [#button]toolbarMenuButtonRenderer = object..end
val toolbarMenuButtonRenderer : 
  toolbarMenuButton #toolbarMenuButtonRenderer Js.t
  Js.constr

Toolbar-specific renderer for goog.ui.MenuButton, based on goog.ui.MenuButtonRenderer.

class type toolbarSelect = object..end
val toolbarSelect : 
  (controlContent Js.opt ->
   menu Js.t ->
   toolbarSelect #menuButtonRenderer Js.t Js.opt ->
   Goog.Gdom.domHelper Js.t Js.opt -> toolbarSelect Js.t)
  Js.constr

A select control for a toolbar.

class type [#button]colorMenuButtonRenderer = object..end
val colorMenuButtonRenderer : 
  colorMenuButton colorMenuButtonRenderer Js.t Js.constr
class type toolbarColorMenuButton = object..end
class type [colorMenuButton]toolbarColorMenuButtonRenderer = object..end
val toolbarColorMenuButton : 
  (controlContent ->
   menu Js.t Js.opt ->
   colorMenuButton #colorMenuButtonRenderer Js.t ->
   Goog.Gdom.domHelper Js.t -> toolbarColorMenuButton Js.t)
  Js.constr

A color menu button control for a toolbar.

val toolbarColorMenuButtonRenderer : 
  colorMenuButton #toolbarColorMenuButtonRenderer Js.t
  Js.constr

Toolbar-style renderer for goog.ui.ColorMenuButton.

module Editor : sig..end
val decorate : #Dom_html.element Js.t -> component Js.t Js.opt

Decorates the element with a suitable goog.ui.Component instance, if a matching decorator is found.