-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Action manager: adding action to select input by default
- Loading branch information
Showing
10 changed files
with
536 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,4 +92,4 @@ | |
] | ||
} | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
--- | ||
{ | ||
"title": "URL Mapping - Select input", | ||
"language": "en", | ||
"category": "Plugins", | ||
"description": "Select inputs by default based on url query string.", | ||
"tag": "urlmapping", | ||
"parentdir": "urlmapping", | ||
"altLangPage": "selectinput-fr.html", | ||
"dateModified": "2023-10-24" | ||
} | ||
--- | ||
<ul class="list-inline"> | ||
<li><a class="btn btn-primary" href="urlmapping-doc-en.html">Documentation</a></li> | ||
<li><a class="btn btn-primary" href="https://github.com/wet-boew/GCWeb/issues/new?title=UrlMapping+tblFilter">Questions or comments?</a></li> | ||
</ul> | ||
|
||
<p>Select inputs by default based on url query string.</p> | ||
|
||
<div class="wb-prettify all-pre"></div> | ||
|
||
<ul> | ||
<li><a href="?">Empty <code>?</code></a></li> | ||
<li><a href="?f=b">Bananas <code>?f=b"</code></a></li> | ||
<li><a href="?f=g">Grapes <code>?f=g"</code></a></li> | ||
</ul> | ||
|
||
<section> | ||
<h2>Example with <code>source</code></h2> | ||
<div data-wb-urlmapping='{ | ||
"f=b": { | ||
"action": "selectInput", | ||
"source": "#fruitsOptions", | ||
"value": "Bananas" | ||
} | ||
}'></div> | ||
|
||
<form id="fruitsOptions"> | ||
<label for="fruitsSelect">Choose a fruit</label> | ||
<select name="fruitsSelect" id="fruitsSelect" class="form-control mrgn-bttm-lg"> | ||
<option value="all">All</option> | ||
<option value="Bananas">Bananas</option> | ||
<option value="Oranges">Oranges</option> | ||
<option value="Apples">Apples</option> | ||
</select> | ||
|
||
<fieldset class="gc-chckbxrdio form-inline mrgn-bttm-lg"> | ||
<legend>Choose a fruit</legend> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes" id="BananasCheckbox" value="Bananas"><label for="BananasCheckbox">Bananas</label> | ||
</div> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes" id="OrangesCheckbox" value="Oranges"><label for="OrangesCheckbox">Oranges</label> | ||
</div> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes" id="ApplesCheckbox" value="Apples"><label for="ApplesCheckbox">Apples</label> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset class="gc-chckbxrdio form-inline"> | ||
<legend>Choose a fruit</legend> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios" id="BananasRadio" value="Bananas"><label for="BananasRadio">Bananas</label> | ||
</div> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios" id="OrangesRadio" value="Oranges"><label for="OrangesRadio">Oranges</label> | ||
</div> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios" id="ApplesRadio" value="Apples"><label for="ApplesRadio">Apples</label> | ||
</div> | ||
</fieldset> | ||
</form> | ||
|
||
<details class="mrgn-tp-lg"> | ||
<summary>Source code</summary> | ||
<pre><code><div data-wb-urlmapping='{ | ||
"f=b": { | ||
"action": "selectInput", | ||
"source": "#fruitsOptions", | ||
"value": "Bananas" | ||
} | ||
}'></div> | ||
|
||
<form id="fruitsOptions"> | ||
<label for="fruitsSelect">Choose a fruit</label> | ||
<select name="fruitsSelect" id="fruitsSelect" class="form-control mrgn-bttm-lg"> | ||
<option value="all">All</option> | ||
<option value="Bananas">Bananas</option> | ||
<option value="Oranges">Oranges</option> | ||
<option value="Apples">Apples</option> | ||
</select> | ||
|
||
<fieldset class="gc-chckbxrdio form-inline mrgn-bttm-lg"> | ||
<legend>Choose a fruit</legend> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes" id="BananasCheckbox" value="Bananas"><label for="BananasCheckbox">Bananas</label> | ||
</div> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes" id="OrangesCheckbox" value="Oranges"><label for="OrangesCheckbox">Oranges</label> | ||
</div> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes" id="ApplesCheckbox" value="Apples"><label for="ApplesCheckbox">Apples</label> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset class="gc-chckbxrdio form-inline"> | ||
<legend>Choose a fruit</legend> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios" id="BananasRadio" value="Bananas"><label for="BananasRadio">Bananas</label> | ||
</div> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios" id="OrangesRadio" value="Oranges"><label for="OrangesRadio">Oranges</label> | ||
</div> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios" id="ApplesRadio" value="Apples"><label for="ApplesRadio">Apples</label> | ||
</div> | ||
</fieldset> | ||
</form></code></pre> | ||
</details> | ||
</section> | ||
|
||
<section> | ||
<h2>Example without source</h2> | ||
<label for="fruitsSelect2">Select a fruit</label> | ||
<select id="fruitsSelect2" class="form-control" data-wb-urlmapping='{ | ||
"f=g": { | ||
"action": "selectInput", | ||
"value": "Grapes" | ||
} | ||
}'> | ||
<option value="all">All</option> | ||
<option value="Oranges">Oranges</option> | ||
<option value="Apples">Apples</option> | ||
<option value="Grapes">Grapes</option> | ||
</select> | ||
|
||
<fieldset class="gc-chckbxrdio form-inline mrgn-bttm-lg" data-wb-urlmapping='{ | ||
"f=g": { | ||
"action": "selectInput", | ||
"value": "Grapes" | ||
} | ||
}'> | ||
<legend>Choose a fruit</legend> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes2" id="BananasCheckbox2" value="Bananas"><label for="BananasCheckbox2">Bananas</label> | ||
</div> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes2" id="OrangesCheckbox2" value="Oranges"><label for="OrangesCheckbox2">Oranges</label> | ||
</div> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes2" id="GrapesCheckbox2" value="Grapes"><label for="GrapesCheckbox2">Grapes</label> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset class="gc-chckbxrdio form-inline" data-wb-urlmapping='{ | ||
"f=g": { | ||
"action": "selectInput", | ||
"value": "Grapes" | ||
} | ||
}'> | ||
<legend>Choose a fruit</legend> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios2" id="BananasRadio2" value="Bananas"><label for="BananasRadio2">Bananas</label> | ||
</div> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios2" id="OrangesRadio2" value="Oranges"><label for="OrangesRadio2">Oranges</label> | ||
</div> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios2" id="GrapesRadio2" value="Grapes"><label for="GrapesRadio2">Grapes</label> | ||
</div> | ||
</fieldset> | ||
|
||
<details class="mrgn-tp-lg"> | ||
<summary>Source code</summary> | ||
<pre><code><label for="fruitsSelect2">Select a fruit</label> | ||
<select id="fruitsSelect2" class="form-control" data-wb-urlmapping='{ | ||
"f=g": { | ||
"action": "selectInput", | ||
"value": "Grapes" | ||
} | ||
}'> | ||
<option value="all">All</option> | ||
<option value="Oranges">Oranges</option> | ||
<option value="Apples">Apples</option> | ||
<option value="Grapes">Grapes</option> | ||
</select> | ||
|
||
<fieldset class="gc-chckbxrdio form-inline mrgn-bttm-lg" data-wb-urlmapping='{ | ||
"f=g": { | ||
"action": "selectInput", | ||
"value": "Grapes" | ||
} | ||
}'> | ||
<legend>Choose a fruit</legend> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes2" id="BananasCheckbox2" value="Bananas"><label for="BananasCheckbox2">Bananas</label> | ||
</div> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes2" id="OrangesCheckbox2" value="Oranges"><label for="OrangesCheckbox2">Oranges</label> | ||
</div> | ||
<div class="checkbox label-inline"> | ||
<input type="checkbox" name="fruitsCheckboxes2" id="GrapesCheckbox2" value="Grapes"><label for="GrapesCheckbox2">Grapes</label> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset class="gc-chckbxrdio form-inline" data-wb-urlmapping='{ | ||
"f=g": { | ||
"action": "selectInput", | ||
"value": "Grapes" | ||
} | ||
}'> | ||
<legend>Choose a fruit</legend> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios2" id="BananasRadio2" value="Bananas"><label for="BananasRadio2">Bananas</label> | ||
</div> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios2" id="OrangesRadio2" value="Oranges"><label for="OrangesRadio2">Oranges</label> | ||
</div> | ||
<div class="radio label-inline"> | ||
<input type="radio" name="fruitsRadios2" id="GrapesRadio2" value="Grapes"><label for="GrapesRadio2">Grapes</label> | ||
</div> | ||
</fieldset></code></pre> | ||
</details> | ||
</section> |
Oops, something went wrong.