Skip to content
Snippets Groups Projects
Commit bd343f14 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

jqxComboBox now expects data as array of objects having text and value attribute.

parent 6e048884
Branches
Tags
No related merge requests found
......@@ -48,7 +48,11 @@ QfqNS.Helper = QfqNS.Helper || {};
var source = JSON.parse($sourceScript.text());
$container.jqxComboBox({source: source});
$container.jqxComboBox({
source: source,
displayMember: "text",
valueMember: "value"
});
// Our code creates a hidden input element for each jqxwidget as sibling of the widget. We do this,
// because jqxwidget don't create named input elements, and thus the value would not be sent to the
......
......@@ -827,9 +827,9 @@
<script type="application/jqw-combobox-source" id="combobox1_source">
[
"item 1",
"item 2",
"item 3"
{ "value": 1, "text": "item 1" },
{ "value": 2, "text": "item 2" },
{ "value": 3, "text": "item 3" }
]
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment