mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-23 17:59:25 -05:00
better description of input validation attributes
Closes https://codeberg.org/forgejo/website/issues/168
This commit is contained in:
parent
c6ab3c37fb
commit
a3c639ff49
1 changed files with 5 additions and 5 deletions
|
@ -218,10 +218,10 @@ Attributes:
|
|||
Validations:
|
||||
|
||||
| Key | Description | Required | Type | Default | Valid values |
|
||||
| --------- | ------------------------------------------------------------------------------------------------ | -------- | ------- | ------- | ------------------------------------------------------------------------ |
|
||||
| required | Prevents form submission until element is completed. | Optional | Boolean | false | - |
|
||||
| is_number | Prevents form submission until element is filled with a number. | Optional | Boolean | false | - |
|
||||
| regex | Prevents form submission until element is filled with a value that match the regular expression. | Optional | String | - | a [regular expression](https://en.wikipedia.org/wiki/Regular_expression) |
|
||||
| --------- | ----------------------------------------------------------------------------------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------------------------------------- |
|
||||
| required | Prevents form submission if the input is empty. | Optional | Boolean | false | - |
|
||||
| is_number | Prevents form submission if the value of the input is not a number. | Optional | Boolean | false | - |
|
||||
| regex | Prevents form submission if the value of the input does not match the regular expression. | Optional | String | - | a [JavaScript regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) |
|
||||
|
||||
### Dropdown
|
||||
|
||||
|
|
Loading…
Reference in a new issue