From 15c8559272a739145cb5f2c60c6cf844638410de Mon Sep 17 00:00:00 2001 From: LogMANOriginal Date: Mon, 15 Aug 2016 09:20:20 +0200 Subject: [PATCH] [BridgeAbstract] Add parameter attribute 'defaultValue' --- BridgeAbstract.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BridgeAbstract.md b/BridgeAbstract.md index a7c6402..6c76b1e 100644 --- a/BridgeAbstract.md +++ b/BridgeAbstract.md @@ -77,6 +77,7 @@ Parameter Name | Required | Type | Supported values | Description `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! `exampleValue` | no | Text | | Defines an example value that is shown for elements of type `text` and `number` +[`defaultValue`](#defaultvalue) | no | | | Defines the default value. Hence, the most basic parameter definition is the following : @@ -92,6 +93,15 @@ Hence, the most basic parameter definition is the following : ... ``` +#### defaultValue + +This attribute defines the default value for your parameter. Its behavior depends on the `type`: + +- `text`: Allows any text +- `number`: Allows any number +- `list`: Must match either name or value of one element +- `checkbox`: Must be "checked" to activate the checkbox + ## The `collectData` function This function takes as a parameter an array called `$param`, that is automatically filled with values from the user, according to the values defined in the parameters array in `loadMetadatas`.