A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.laravel-enso.com/frontend/forms.html below:

Website Navigation


Forms | Laravel Enso

# Forms

Vue Form Package

Can be used outside of the Enso ecosystem.

For live examples and demos, you may visit laravel-enso.com

Should be used with its backend sibling

# Installation

Install the package:

(within Enso, remember to cd into the client folder before installing front-end assets)

Note that this package has a couple of external dependencies. Read here for more info.

# Exports

@enso-ui/forms/bulma:

@enso-ui/forms/renderless:

# Usage

Import the desired forms(s):

# CoreForm

Renderless component.

# Props # Methods

The components has several methods, of which the following are most useful, making sense to have them available in the CoreForm's concrete implementations:

# Events

The following event are emitted:

# VueForm

The bulma styled form component built on top of the renderless version of the component.

# Example: # Methods

The following methods are cascaded from the renderless CoreForm component:

# Slots # EnsoForm.vue

Designed to be used within the Enso ecosystem, requiring less configuration from the dev.

# Methods

The following methods are cascaded from the renderless CoreForm component, through the VueForm component and available here:

# Example # Example for showing/hiding tabs # Vue Template # Example for showing/hiding fields

Some forms require display-dependencies between one or more field and others. Example scenario : an entity model could have or not an address, therefore there is a checkbox field inside the form called "Has Address" that will show or hide some form fields related to address details.

# Vue Template # Props

All the props from the renderless component can be provided here

# Components for custom fields

Starting with v1.1.0 you should always use FormField when dealing with slots.

If you want further customization the package provides a component for each type of field:

# DateField # InputField # MoneyField # SelectField # SwitchField # TextareaField.vue # TimeField.vue # WysiwygField.vue

Don't forget to add your own label when when using the dedicated component.

# Example: # DateField

The component takes the following required properties:

# InputField

The component takes the following required properties:

# MoneyField

The component takes the following required properties:

# SelectField

The component takes the following required properties:

# SwitchField

The component takes the following required properties:

# TextareaField

The component takes the following required properties:

# TimeField

The component takes the properties as the DateField component above.

# WysiwygField

The component takes the following required properties:

# Questions & Issues

For questions and support please use the issues functionality for this package's github repository.

Please make sure to search for existing issues before creating a new issue, and when opening a new issue, fill the required information in the issue template.

Issues not conforming to the guidelines may be closed immediately.

# Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

# License

ISC


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4