Skip to content

Commit

Permalink
#156 reordered dialog option for datalist
Browse files Browse the repository at this point in the history
  • Loading branch information
qial committed Aug 26, 2020
1 parent eef1767 commit f86a1bb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
12 changes: 6 additions & 6 deletions core/src/main/java/com/themecleanflex/models/DatalistModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@
"x-form-fieldLabel": "header",
"x-form-type": "collection",
"properties": {
"value": {
"header": {
"type": "string",
"x-source": "inject",
"x-form-label": "Data Value",
"x-form-label": "Column Header",
"x-form-type": "text"
},
"header": {
"value": {
"type": "string",
"x-source": "inject",
"x-form-label": "Column Header",
"x-form-label": "Data Value",
"x-form-type": "text"
}
}
Expand Down Expand Up @@ -383,7 +383,7 @@ public class DatalistModel extends AbstractComponent {
@Inject
private String loadFunction;

/* {"type":"string","x-source":"inject","x-form-label":"Table Configuration","x-form-fieldLabel":"header","x-form-type":"collection","properties":{"value":{"type":"string","x-source":"inject","x-form-label":"Data Value","x-form-type":"text"},"header":{"type":"string","x-source":"inject","x-form-label":"Column Header","x-form-type":"text"}}} */
/* {"type":"string","x-source":"inject","x-form-label":"Table Configuration","x-form-fieldLabel":"header","x-form-type":"collection","properties":{"header":{"type":"string","x-source":"inject","x-form-label":"Column Header","x-form-type":"text"},"value":{"type":"string","x-source":"inject","x-form-label":"Data Value","x-form-type":"text"}}} */
@Inject
private List<IComponent> columns;

Expand Down Expand Up @@ -522,7 +522,7 @@ public String getLoadFunction() {
return loadFunction;
}

/* {"type":"string","x-source":"inject","x-form-label":"Table Configuration","x-form-fieldLabel":"header","x-form-type":"collection","properties":{"value":{"type":"string","x-source":"inject","x-form-label":"Data Value","x-form-type":"text"},"header":{"type":"string","x-source":"inject","x-form-label":"Column Header","x-form-type":"text"}}} */
/* {"type":"string","x-source":"inject","x-form-label":"Table Configuration","x-form-fieldLabel":"header","x-form-type":"collection","properties":{"header":{"type":"string","x-source":"inject","x-form-label":"Column Header","x-form-type":"text"},"value":{"type":"string","x-source":"inject","x-form-label":"Data Value","x-form-type":"text"}}} */
public List<IComponent> getColumns() {
return columns;
}
Expand Down
9 changes: 4 additions & 5 deletions fragments/datalist/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,16 @@
"x-form-fieldLabel": "header",
"x-form-type": "collection",
"properties": {

"value": {
"header": {
"type": "string",
"x-source": "inject",
"x-form-label": "Data Value",
"x-form-label": "Column Header",
"x-form-type": "text"
},
"header": {
"value": {
"type": "string",
"x-source": "inject",
"x-form-label": "Column Header",
"x-form-label": "Data Value",
"x-form-type": "text"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
{
"type": "input",
"inputType": "text",
"placeholder": "value",
"label": "Data Value",
"model": "value"
"placeholder": "header",
"label": "Column Header",
"model": "header"
},
{
"type": "input",
"inputType": "text",
"placeholder": "header",
"label": "Column Header",
"model": "header"
"placeholder": "value",
"label": "Data Value",
"model": "value"
}
],
"placeholder": "columns",
Expand Down

0 comments on commit f86a1bb

Please sign in to comment.