mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 15:47:32 +02:00
Add "pattern" parameter to the parameters list
@@ -69,12 +69,13 @@ Following elements are supported :
|
||||
|
||||
Parameter Name | Required | Type | Supported values | Description
|
||||
---------------|----------|------|------------------| -----------
|
||||
`name`|**yes**|Text||Input name as displayed to the user
|
||||
`identifier`|**yes**|Text||Identifier, which will be the key in the `$param` array for the [`collectData`](#the-collectdata-function) function
|
||||
`type`|no|Text|`text`, `number`, `list`, `checkbox`|Type of the input, default is text
|
||||
`required`|no|Boolean|`true`, `false`|Set this if you want your attribute to be required
|
||||
`values`|no|Text|`[ {"name" : option1Name, "value" : "option1Value"}, ... ]`| Values list, required with the '`list`' type
|
||||
`title`|no|Text||Will be shown as tool-tip when mouse-hovering over the input
|
||||
`name` | **yes** | Text | | Input name as displayed to the user
|
||||
`identifier` | **yes** | Text | | Identifier, which will be the key in the `$param` array for the [`collectData`](#the-collectdata-function) function
|
||||
`type` | no | Text | `text`, `number`, `list`, `checkbox` |Type of the input, default is text
|
||||
`required` | no | Boolean | `true`, `false` | Set this if you want your attribute to be required
|
||||
`values` | no | Text | `[ {"name" : option1Name, "value" : "option1Value"}, ... ]` | Values list, required with the '`list`' type
|
||||
`title` | no | Text | | Will be shown as tool-tip when mouse-hovering over the input
|
||||
`pattern` | no | Text | | Defines a pattern for an element of type `text`. The required pattern should be mentioned in the `title` attribute!
|
||||
|
||||
Hence, the most basic parameter definition is the following :
|
||||
|
||||
|
Reference in New Issue
Block a user