Forked from
Documentation / General documentation
-
Matthieu Fesselier authoredMatthieu Fesselier authored
Solid-Form.rst 4.35 KiB
solid-form
Receives the URL of a ressource via its data-src
attribute, and
displays a form to edit the resource. If given the URL of a container of
ressources, and displays a creation form to add a resource to the
container.
<solid-form data-src="http://server/todos/"></solid-form>
Mixins
- This component uses the following mixins:
Please check their documentation to know more about their capabilities.
Attributes
fields
List of the fields used to create the form (by default, all of them are used).
label-[field]
When displaying a form, the default labels are the fields names of the model.
If you want something fancier, you can set this attribute.
i.e. label-username="Your name"
naked
When the attribute is set, the submit button will be removed. It’s particularly useful to prevent the nested forms to display their own submit button.