Slots / Code Injection

There are many ways to inject code throughout your site. Slots are the primary method for doing this

Slots are definable HTML templates that can be inserted into various areas of BetterForms. Slots can be used for customizing the header area, navigation and footer areas (footer not developed yet). Slots can accept HTML and VueJs HTML.

Slot scope for VueJS HTML content will depend on the slot location. All slots can see window.formGen from there you can access formGen.formSchema.model etc.

Slots replace default slot content if there is a default content (Eg. logout)

To edit your site's slots, go to the Appearance > Slots tab of your site settings.

Slot Locations:

Last updated