wire.ui.Component
Although it is not required that a component extend the wire.ui.Component
class in order to work inside a WireBootstrap application, the wire.ui.Component
class contains all the core functionality needed by a component to take advantage of the data binding, messaging, configuration, events, and other functionality provided the WireBootstrap framework.
Uses
Individuals working with WireBootstrap components to build applications are referred to as component consumers. For this audience, a subset of the methods in wire.ui.Component
will be applicable. For an overview, read Working with Components.
Component authors are those who are building new components for WireBootstrap that will eventually be used by component consumers. For component authors, many more of the features of this base class will be applicable. For details, read Building a WireBootstrap Component.
Methods
Name | Description |
config | |
data | Returns the internal data to which the component is bound. |
dataBind(callback) | Defines the component's data-bind |
element | Returns the native DOM element for the component. Use |
fail(exception) | Callback function for a failure during a lifecycle event. See life cycle events for additional information. |
initialize(config) | Binds the configuration data in |
plugin(plugin) | For components that use or many times just wrap internal jQuery components. This method will set or return the instance of the internal jQuery component. |
ready | Callback function for when the component has finished initializing. See life cycle events for additional information. |
select | Component consumers are able to specify a list of fields to be displayed in a table component in a |
spinner | A |
Last updated