wire.ui.Component
. This class gives components the base functionality needed to take advantage of the capabilities of the WireBootstrap framework. It internalizes much of the details for development teams building new components for WireBootstrap. It also provides a standard interface for teams working with components as they develop applications using WireBootstrap.wire.ui.Component
are JavaScript classes or functions which allow new instances of them to be created. By convention, each is defined on the root global object wire
although this is not a requirement.wire
global and then create components inside that root.render
method is called to initialize a component which includes binding to data, applying any configuration, attaching to a DOM element, and then sending out event notifications that its finished initializing. render
method takes two parameters. The first is the element id
into which the component will be rendered. The second parameter is the configuration for initialing the component.table
.render
method returns the instance of the component so it can be chained with the component constructor for convenience.render
method. One of the operations performed in the render method is the merging of the configuration passed in with the components defaults. The config
method on a component will return this merged configuration. selectAll
value is written to the browser's developer tools console.data
method on the component can be used to access this data table.element
method of a component to get a reference to the DOM object to which the component is bound. If the component uses jQuery for the element, you can get the jQuery version using the$element
method. plugin
property of a component to get a reference to the internal plugin instance used by the component.plugin
. It then gets an array of the currently selected rows using the native DataTables API.getSelectedRows
method on the DataTables for WireBootstrap component directly.dataevent
property.