![]()
Adds a menu item to the given font menu button. The first font listed in
the
value argument is considered the font ID, so adding two items
whose CSS style starts with the same font may lead to unpredictable results.
Arguments:
|
code » | |||||||
![]()
Adds a menu item to the given font size menu button. The
value
argument must be a legacy HTML font size in the 0-7 range.
Arguments:
|
code » | |||||||
![]()
Bulk-adds font sizes to the given font size menu button. The argument must
be an array of font size descriptor objects, each of which must have the
following attributes:
Arguments:
|
code » | |||||||
![]()
Bulk-adds fonts to the given font menu button. The argument must be an
array of font descriptor objects, each of which must have the following
attributes:
Arguments:
|
code » | |||||||
![]()
Adds a menu item to the given "Format block" menu button.
Arguments:
|
code » | |||||||
![]()
Bulk-adds format options to the given "Format block" menu button. The
argument must be an array of format option descriptor objects, each of
which must have the following attributes:
Arguments:
|
code » | |||||||
Creates a new DIV that wraps a button caption, optionally applying CSS
class names to it. Used as a helper function in button factory methods.
Arguments:
Returns: !Element
DIV that wraps the caption.
|
code » | |||||||
Converts a pixel font size specification into an equivalent legacy size.
For example,
font-size: 32px; is <font size="6"> , etc.
If the given pixel size doesn't exactly match one of the legacy sizes, -1 is
returned.
|
code » | |||||||
Takes a font spec (e.g. "Arial, Helvetica, sans-serif") and returns the
primary font name, normalized to lowercase (e.g. "arial").
|
code » | |||||||
Converts a legacy font size specification into an equivalent pixel size.
For example,
<font size="6"> is font-size: 32px; , etc.
|
code » | |||||||
![]()
Creates a toolbar button with the given ID, tooltip, and caption. Applies
any custom CSS class names to the button's caption element.
Arguments:
Returns: !goog.ui.Button
A toolbar button.
|
code » | |||||||
![]()
Creates a color menu button with the given ID, tooltip, and caption.
Applies any custom CSS class names to the button's caption element. The
button is created with a default color menu containing standard color
palettes.
Arguments:
Returns: !goog.ui.ColorMenuButton
A color menu button.
|
code » | |||||||
![]()
Creates a menu button with the given ID, tooltip, and caption. Applies
any custom CSS class names to the button's caption element. The button
returned doesn't have an actual menu attached; use
goog.ui.MenuButton#setMenu to attach a goog.ui.Menu to the
button.
Arguments:
Returns: !goog.ui.MenuButton
A menu button.
|
code » | |||||||
![]()
Creates a select button with the given ID, tooltip, and caption. Applies
any custom CSS class names to the button's root element. The button
returned doesn't have an actual menu attached; use
goog.ui.Select#setMenu to attach a goog.ui.Menu containing
goog.ui.Option s to the select button.
Arguments:
Returns: !goog.ui.Select
A select button.
|
code » | |||||||
![]()
Creates a toggle button with the given ID, tooltip, and caption. Applies
any custom CSS class names to the button's caption element. The button
returned has checkbox-like toggle semantics.
Arguments:
Returns: !goog.ui.Button
A toggle button.
|
code » | |||||||
Creates a
goog.ui.Toolbar containing the specified set of
toolbar buttons, and renders it into the given parent element. Each
item in the items array must a goog.ui.Control .
Arguments:
Returns: !goog.ui.Toolbar
Editor toolbar, rendered into the given parent
element.
|
code » |