Extends
Constructor
new OO.ui.ToolFactory()
#
Hierarchy
A ToolFactory creates tools on demand. All tools (Tools
,
PopupTools
, and ToolGroupTools
) must be
registered with a tool factory. Tools are registered by their symbolic name. See
toolbars
for an example.
For more information about toolbars in general, please see the OOUI documentation on MediaWiki.
- Source:
A ToolFactory creates tools on demand.
Methods
getTools(include, exclude, promote, demote) → {Array.<string>}
#
Get tools from the factory.
Parameters:
Name | Type | Description |
---|---|---|
include |
Array | string | Included tools, see #extract for format |
exclude |
Array | string | Excluded tools, see #extract for format |
promote |
Array | string | Promoted tools, see #extract for format |
demote |
Array | string | Demoted tools, see #extract for format |
- Source:
Returns:
List of tools
- Type
- Array.<string>
Get tools from the factory.