Overview
Below is a summary of the key components that make up the core of the WireBootstrap framework.
Namespaces
The WireBootstrap library contains the objects and classes that make up the WireBootstrap framework. These are grouped into the following namespaces. Visit the reference sections for details.
Name | Description |
| This is the root namespace for everything that makes up WireBootstrap. It also contains many utilities and helper functions that make developing applications easier. |
| This namespace contains all the objects related to accessing and processing data. |
| This namespace contains all the objects related to user interface concerns including components and data events. |
| Components and services published by WireBootstrap that support third party integration are created off the |
DataSource
A DataSource object is the connection object for any communications to data services from inside the WireBootstrap framework. This object is located at wire.data.DataSource
.
The following example creates a new DataSource against a custom account
web service.
Visit the Connecting to Data section for more on data sources.
TableQuery
A TableQuery is a query for two-dimensional data from a data service. Often times this is run against data that resides in a relational database, but its up to the data service to source the data specified in the query.
There is a select
helper on the wire.data
namespace that will return a new TableQuery and allows one to be built up using chained methods on the object. The syntax of the methods are similar to SQL select statements.
The following example, creates a query to pull down two fields for a specific account number from the AccountInfo
entity or method on a web service.
Visit the Working with Queries section for more on creating and executing queries.
DataTable
Data from any data service will be transformed into a DataTable object located at wire.data.DataTable
when it returns from the data service.
The following example executes the query against the accounts
web service
The DataTable is a powerful object with dozens of methods that allow an array of objects to be manipulated and transformed locally in JavaScript.
Visit the Working with DataTables section for more on data tables.
Components
The components and widgets used in Bootstrap themes are extended by WireBootstrap to have a standard set of interfaces for binding to data and handling events. These events include both the native component events as well as the data events that allow them to broadcast data changes to each other.
All WireBootstrap components can be bound to a WireBootstrap data table the same way. Most components are all located off of the wire
root namespace.
The following example binds the result of the account
service query to an instance of the Bootstrap HTML table.
Note, the wire.bs*
contains many of the native Bootstrap components.
Visit the Working with Components section for more on components.
DataSet
The example above executes a query against a data service and binds a static data table to a component. This is a one-way, one-time binding.
A DataSet however allows the binding to be dynamic. Data sets can listen for data events emitted by components as users interact with them. Data sets are located at wire.data.DataSet.
When a data set finds an event that affects a field or other aspect of their query, they can make the appropriate changes to the query, execute it against the data service, pull down the updated data, and then update any consumers including UI components that are bound to that data set to reflect the changes.
The following example creates a data set using the same data source and query seen the examples above. It the binds the HTML table to the data set instead of a data table.
Visit the Working with DataSets section for more on data sets.
Web Frameworks
The same bindings can be done inside many popular web frameworks such as Angular, React, Vue, and Web Components.
The following example illustrates the same binding as in previous examples using WireBootstrap for Web Components. With web components, the dataset can be imported directly using an attribute reference to the module export with the name of the data set as a pipe-delimited parameter.
In the following example, the same datasetAccounts
data set is dynamically imported into the component and set on the data
property of the component class. The HTML table component is then able to render the data set.
Visit Web Frameworks for more information on WireBootstrap and web frameworks.
Last updated