ElementText

Used by elements to render static HTML.

Options

Find below the list of options that can use to configure ElementText component. Options can be passed to the component via props.

type

  • Type: string
  • Required: true
vue
<ElementText type="before" ... />

The type of the text container. Possible values 'before', 'between' and 'after'.

Properties

All the data, computed and inject properties of the component.

Size

  • Type: string
  • Group: inject

The size of the component.

View

  • Type: string
  • Group: computed

The name of the resolved view for the component. This one should be used to determine the component's view in class functions.

template

  • Type: object
  • Group: computed

The component's template.

classes

  • Type: object
  • Group: computed

The component's classes.

theme

  • Type: object
  • Group: inject

The global theme object, which contains all the default templates and classes.

form$

  • Type: Vueform
  • Group: inject

The root form's component.

el$

  • Type: VueformElement
  • Group: inject

The parent element's component.

Slots

The slots of the component.

default

Renders the text if the parent element has no type defined as option (before|between|after).

👋 Hire Vueform team for form customizations and developmentLearn more