Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
af8ab082
Verified
Commit
af8ab082
authored
4 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: update doc
parent
ff6b5e7b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
development/issues/closed/280.html
+1
-1
1 addition, 1 deletion
development/issues/closed/280.html
development/issues/closed/280.mjs
+20
-18
20 additions, 18 deletions
development/issues/closed/280.mjs
source/components/form/select.mjs
+2
-0
2 additions, 0 deletions
source/components/form/select.mjs
with
23 additions
and
19 deletions
development/issues/
open
/280.html
→
development/issues/
closed
/280.html
+
1
−
1
View file @
af8ab082
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
select attribute=\"value\" from datasource doesn´t work #280
</title>
<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>
</head>
<body>
<body>
<h1>
select attribute="value" from datasource doesn't work #280
</h1>
<h1>
select attribute="value" from datasource doesn't work #280
</h1>
...
...
This diff is collapsed.
Click to expand it.
development/issues/
open
/280.mjs
→
development/issues/
closed
/280.mjs
+
20
−
18
View file @
af8ab082
...
@@ -36,24 +36,26 @@ const dataset = [
...
@@ -36,24 +36,26 @@ const dataset = [
setTimeout
(()
=>
{
setTimeout
(()
=>
{
const
select
=
document
.
getElementById
(
"
i280
"
)
const
select
=
document
.
getElementById
(
"
i280
"
)
console
.
log
(
select
);
//
console.log(select);
select
.
setOption
(
"
test.value
"
,
[
"
826
"
,
"
752
"
]);
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
//if(true) return
//document.getElementById("i280").setOption("test.value", "a,b,c");
//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
// 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
);
select
.
getSelect
().
importOptions
(
dataset
);
},
1000
);
//select.setOption("test.value", ["826","752"]);
//select.setOption("test.value", ["826","752"]);
...
...
This diff is collapsed.
Click to expand it.
source/components/form/select.mjs
+
2
−
0
View file @
af8ab082
...
@@ -267,6 +267,8 @@ const FILTER_POSITION_INLINE = "inline";
...
@@ -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.
* 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/
* @fragments /fragments/components/form/select/
*
*
* @example /examples/components/form/select-with-options Select with options
* @example /examples/components/form/select-with-options Select with options
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment