Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
helper_field_select [2018/08/29 14:08] – [Helper Field 'select'] Adjust intro for 'select'. Traumflug | helper_field_select [2019/02/22 18:39] (current) – [Parameter Description] thirty bees learned cast 'priceval'. Traumflug | ||
---|---|---|---|
Line 18: | Line 18: | ||
' | ' | ||
' | ' | ||
- | ' | ||
' | ' | ||
+ | ' | ||
' | ' | ||
[ | [ | ||
Line 65: | Line 65: | ||
== ' | == ' | ||
Value to use if //' | Value to use if //' | ||
+ | |||
+ | == ' | ||
+ | String which identifies the key in these pairs inside entries in //' | ||
== ' | == ' | ||
Select the HTML menu entry with this value. Requires //' | Select the HTML menu entry with this value. Requires //' | ||
- | == ' | + | Notably, as Option Fields are usually set in the class constructor, |
- | String which identifies the key in these pairs inside entries in //' | + | |
== ' | == ' | ||
- | List of options to fill the HTML select with. Each option is an array with two key-value pairs. **Mandatory**, | + | List of options to fill the HTML select with. Each option is an array with two key-value pairs. **Mandatory**. An empty array gives no selector at all. To get an empty selector, e.g. to fill it with JavaScript, define |
== ' | == ' | ||
Line 85: | Line 87: | ||
== ' | == ' | ||
- | Name of a PHP casting function to convert the submitted value with. Unlike with other Helper fields, this cast gets applied to each menu option before rendering as well as after submit. Can be // | + | Name of a PHP casting function to convert the submitted value with. Unlike with other Helper fields, this cast gets applied to each menu option before rendering as well as after submit. Can be // |
== ' | == ' | ||
Line 143: | Line 145: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <div class=" | + | <select |
- | < | + | name="MYCONTROLLER_OPTION" |
- | id="myid" | + | |
- | size="10" | + | id="MYCONTROLLER_OPTION" |
- | name="MYCONTROLLER_OPTION" | + | size="1"> |
- | | + | < |
- | placeholder="placeholder text" | + | < |
- | type="text"> | + | <option value="baz">Use BAZ!</option> |
- | <span class="input-group-addon">units</span> | + | </select> |
- | </div> | + | |
</ | </ | ||
<div class=" | <div class=" |
helper_field_select.1535544485.txt.gz · Last modified: 2018/08/29 14:08 by Traumflug