Custom web components

Not only can the built-in components be used in the JBStrap framework, but the framework also allows developers to create custom web components. There are several ways to do this, depending on which method you need for a given task. You can create a custom component by extending an earlier or a built-in component, in which case the component can be enhanced with custom settings, properties, or you can add new features. You can combine several components to create a new one. You can also create a completely new component, which can even use an external JavaScript library.

Commonly used custom components often include individual form items. A form item is a component, but a bit different since each form item has to work with the Form component. The framework supports form items and provides them with the corresponding ancestor classes. These will allow a custom component to function as a form item and also work together with the Form component, meaning we can also create custom form items if we needed.

Chapters

Related pages