Component page generation

Component rendering method

Add a backend controller method for rendering a (Vue) component(s) and passing props without need for a boilerplate Twig template.

Parameters

  • page title
  • components array
    • name
    • props array
  • script (JS) URL array

Input elements from props

Add a wrapper component for generating inputs from props to facilitate creating an admin/settings page for a module (with no need for compiled JS). Implement it for the core settings page components (BaseManager & SettingsForm).

Props

  • settings object
    • section/category key (contains an object of settings)
      • id/name
      • type
        • text
        • number
        • select
        • checkbox
        • textarea
      • options array (if type is select)
      • meta
        • label
        • icon
        • placeholder
        • tooltip
        • size (per breakpoint) object

Completion

  • Component rendering method
  • Form field generation from props
  • Fluent builder for prop arrays
  • BaseManager wrapper/rework
Edited by Kekalainen