@kong-ui-public/forms
v3.1.2
Published
## Requirements
Downloads
15,403
Readme
@kong-ui-public/forms
Requirements
vue
must be initialized in the host application@kong/kongponents
must be available as adependency
in the host application and registered globally, along with the Kongponents style import. See here for instructions on installing Kongponents.@kong-ui-public/i18n
must be available as adependency
in the host application.
how to add shared form
Let's say you need introduce shared customization for 'PostFunction' plugin form. Here are the steps
add
PostFunction.vue
intosrc/forms/
modify
finalSchema
computable inPostFunction.vue
the way you like it.add export for this component into
src/forms/index.ts
add mapping for model name -> component name into
getSharedFormName
function defined insrc/index.ts
That's it - next time the version of @kong-ui-public/forms is used - your src/forms/PostFunction.vue
will be presented when user selects Post Function
plugin to install or edit.