Skip to content
Snippets Groups Projects
Commit 078da8b9 authored by Martin Massenberg's avatar Martin Massenberg
Browse files

20240621

parent 217b2377
No related branches found
No related tags found
No related merge requests found
# Changelog
## 2024-06-22
- new options to define the markers that are used for the label template [#203](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/203)
## [3.69.2] - 2024-06-24
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>select label is not translated when the value is transferred #212</title>
<script src="./212.mjs" type="module"></script>
</head>
<body>
<h1>select label is not translated when the value is transferred #212</h1>
<p>select label is not translated when the value is transferred</p>
<ul>
<li><a href="https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/212">Issue #212</a></li>
<li><a href="/">Back to overview</a></li>
</ul>
<main>
<monster-select value="1000"
data-monster-option-url="/issue-212.json"
data-monster-option-mapping-labeltemplate="name"
data-monster-option-mapping-valuetemplate="id"
></monster-select>
</main>
</body>
</html>
/**
* @file development/issues/open/212.mjs
* @url https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/212
* @description select label is not translated when the value is transferred
* @issue 212
*/
import "../../../source/components/style/property.pcss";
import "../../../source/components/style/normalize.pcss";
import "../../../source/components/style/typography.pcss";
import "../../../source/components/style/link.pcss";
import "../../../source/components/style/color.pcss";
import "../../../source/components/form/select.mjs";
const json1 =
`[
{
"id": "1000",
"name": "order 1",
"fieldA": "value A1",
"fieldB": "value B1"
},
{
"id": "1001",
"name": "order 2",
"fieldA": "value A2",
"fieldB": "value B2"
}
]`;
// check if json is valid
JSON.parse(json1)
const requestDelay = 1000
export default [
{
url: '/issue-212.json',
method: 'get',
rawResponse: async (req, res) => {
res.setHeader('Content-Type', 'application/json')
res.statusCode = 200
setTimeout(function() {
res.end(json1)
}, requestDelay);
},
}
];
\ No newline at end of file
......@@ -238,6 +238,7 @@ class Filter extends CustomElement {
},
},
labels: {
search: "Search",
reset: "Reset",
save: "Save",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment