The WireBootstrap framework brings data management services into UI components standardizing how they are bound to data and their respective configurations. WireBootstrap components are designed to be web framework agnostic.
Any component created by WireBootstrap can be used as a web component. For details on web component support for a WireBootstrap component created by others, visit the component documentation.
Use the wire-component element to render WireBootstrap components as web components. This element has the following properties.
In addition to these native properties, any configuration properties unique to a component can be set using the attributes of wire-component.
Rather than using a full configuration object, the following example sets the color configuration property on the buttons to be btn-secondaryusing the color attribute on wire-component. It also configures the data for the component using the data property.
For details on how to use WireBootstrap components in other web frameworks, visit Web Frameworks in the core WireBootstrap documentation.
Component Reference
In order to work directly with a component in JavaScript, get a reference to the component's HTML element in JavaScript. Then use the wrComponent property on the element to get a reference to the internal component object.
In TypeScript, WireBootstrap's TypeScript interfaces can be used to do the same cast.