"columnID": 5,
"columnType": "text",
"field": "AssignmentDate",
"title": "Assignment Date",
"width": "170",
"hidden": true,
"resizable": true,
"reorderable": true,
"columnMenu": true,
"filter": true,
"minLength": "",
"maxLength": "",
"required": false
this is my JSON format as you can see here "COLUMN TYPE" and "TITLE", each object has different type and title how can I use this format to render in query builder angular 7.
so far I have tried in this
can you help me with this?
<ejs-querybuilder #querybuilder class="row mx-0" [dataSource]="dataSource" [showButtons]="showButtons"
[rule]="importRules" (created)="createdControl()">
<e-columns>
<ng-template #template ngFor let-column [ngForOf]="Columns">
<e-column [field]="column.field" [label]="column.title" [type]="column.ColumnType">
e-column>
ng-template>
e-columns>
ejs-querybuilder>
and this
<ejs-querybuilder #querybuilder class="row mx-0" [dataSource]="columns">
ejs-querybuilder>
and when I tried to render data from the JSON using the subscribe method from the TS file. Their it is showing "No Records"
ts file
this.fetchData.getUserContentProgress().subscribe(data => {
debugger;
this.userContent_ParentGridColumns = data['GridParentColumns'];
console.log(this.userContent_ParentGridColumns);
})
html file
<ejs-querybuilder #querybuilder class="row mx-0" [dataSource]="userContent_ParentGridColumns ">
ejs-querybuilder>
is this the correct way?