Skip to content
Snippets Groups Projects
Verified Commit af8ab082 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: update doc

parent ff6b5e7b
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>select attribute=\"value\" from datasource doesn´t work #280</title>
<script src="./280.mjs" type="module"></script>
<script src="280.mjs" type="module"></script>
</head>
<body>
<h1>select attribute="value" from datasource doesn't work #280</h1>
......
......@@ -36,24 +36,26 @@ const dataset = [
setTimeout(() => {
const select = document.getElementById("i280")
console.log(select);
// console.log(select);
select.setOption("test.value", ["826", "752"]);
select.getSelect().setOption('mapping.labelTemplate', '${name} (${alpha-2})')
// the value template is a string that will be used to generate the value for each option
select.getSelect().setOption('mapping.valueTemplate', '${country-code}')
//if(true) return
//document.getElementById("i280").setOption("test.value", "a,b,c");
setTimeout(() => {
// the label template is a string that will be used to generate the label for each option
select.getSelect().setOption('mapping.labelTemplate', '${name} (${alpha-2})')
// the value template is a string that will be used to generate the value for each option
select.getSelect().setOption('mapping.valueTemplate', '${country-code}')
select.getSelect().importOptions(dataset);
}, 1000);
//select.setOption("test.value", ["826","752"]);
......
......@@ -267,6 +267,8 @@ const FILTER_POSITION_INLINE = "inline";
/**
* A select control that can be used to select one or more options from a list.
*
* @issue @issue https://localhost.alvine.dev:8444/development/issues/closed/280.html
*
* @fragments /fragments/components/form/select/
*
* @example /examples/components/form/select-with-options Select with options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment