Container
A Container facilitates the use of components within the forms.
You won't be able to place a component directly on the canvas, so you will need to either have the Container or the Section in your form to be able to use the form components.
note
You can have multiple containers in one form - stacked one after the other or within another (can be either a container or a section).
API Methods
deleteAsset
Deletes particular asset in the container
- Method
- Usage
deleteAsset(assetId: string, options: { index: number; }): void
// Deletes the asset in a container with its Id and index
a8forms.Container("containerId").deleteAsset("assetId", { index: 0 })
importAsset
Imports an asset at a specified path
- Method
- Usage
importAsset(assetId: string, options: { bindPrefix: string; after?: string; }): void
// Prefixes the bind and imports the asset after the required feild using the Id of the field
a8forms.Container("containerId").importAsset("assetId",{bindPrefix:"jack",after?:"componentId"})