Slots

Slots are helpful at individualizing a component or creating reusable code

Slots are a mechanism for Vue components that allows you to compose your components and to inject content into a child component, by passing template code.

Signature of Slots

<!-- FORM #slot-[top|bottom]-[formbase-id || 'form-base']-->
  <template #slot-top-my-form="{id, index, obj}"></template>

  <!-- KEY #slot-[top|bottom|item]-key-[formbase ID]-[path key] -->
  <template #slot-top-key-my-form-name="{id, index, obj}"></template>
  <template #slot-bottom-key-my-form-controls-check></template>

  <!-- TYPE #slot-[top|bottom|item]-type-[formbase ID]-[type of control]-->
  <template #slot-top-type-my-form-checkbox="{id, index, obj}"></template>

  <!-- 
    INJECT specific slot into exposed slot of vuetify control  
    #slot-inject-[slot to inject into control]-key-[formbase ID]-[path key]
  -->
  <template #slot-inject-label-key-my-form-name="{id, index, obj}">
  
  <!-- TOOLTIP #slot-tooltip to activate you must have schema prop tooltip -->
  <template #slot-tooltip="{id, index, obj}">

Schema which is used in the following examples

Form-Base Slots

Signature

Example

Key Slots

Signature

Example

Type Slots

Signature

Example

Array Slots

Signature

See this live in Array-Slot-Example

Inject Slot into Vuetify Control

Signature

Simple Example

See this live in Slot-Example

Tooltip Slots

see in Section Tooltips

Last updated

Was this helpful?