Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
General documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anastasia Kryukova
General documentation
Commits
578e2a00
Commit
578e2a00
authored
4 years ago
by
Manon Bourgognon
Browse files
Options
Downloads
Patches
Plain Diff
Add maxlength attribute for textarea
parent
39758c34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/import_documentation/Components/Solid-Form.rst
+5
-0
5 additions, 0 deletions
source/import_documentation/Components/Solid-Form.rst
source/import_documentation/attributes-list.rst
+4
-0
4 additions, 0 deletions
source/import_documentation/attributes-list.rst
with
9 additions
and
0 deletions
source/import_documentation/Components/Solid-Form.rst
+
5
−
0
View file @
578e2a00
...
@@ -127,6 +127,11 @@ Attributes
...
@@ -127,6 +127,11 @@ Attributes
If the attribute is defined, each change in an input will trigger a request to update the resource.
If the attribute is defined, each change in an input will trigger a request to update the resource.
This attribute works only when editing resources, not creating them.
This attribute works only when editing resources, not creating them.
``maxlength-[field]``
~~~~~~~~~~~~~~~~~~~~~
Add this attribute for the field ``[field]`` to define the maximum number of characters that can be typed.
It works only with a ``solid-form-textarea`` widget.
Widgets
Widgets
-------
-------
By default, the widget used is ``<solid-form-label-text>``. Cf the
By default, the widget used is ``<solid-form-label-text>``. Cf the
...
...
This diff is collapsed.
Click to expand it.
source/import_documentation/attributes-list.rst
+
4
−
0
View file @
578e2a00
...
@@ -141,6 +141,10 @@ List of attributes (core framework)
...
@@ -141,6 +141,10 @@ List of attributes (core framework)
``max-[field]``
``max-[field]``
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
* :ref:`solid-form <solid-form>`
* :ref:`solid-form <solid-form>`
``maxlength-[field]``
~~~~~~~~~~~~~~~~~~~~~
* :ref:`solid-form <solid-form>`
``min-[field]``
``min-[field]``
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment