mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
rename generatechema
This commit is contained in:
@@ -32,7 +32,7 @@ export class ObjectDataTableAdapter implements DataTableAdapter {
|
|||||||
private _rows: DataRow[];
|
private _rows: DataRow[];
|
||||||
private _columns: DataColumn[];
|
private _columns: DataColumn[];
|
||||||
|
|
||||||
static generationSchema(rowToExaminate: any) {
|
static generatechema(rowToExaminate: any) {
|
||||||
let schema = [];
|
let schema = [];
|
||||||
|
|
||||||
if (typeof rowToExaminate === 'object') {
|
if (typeof rowToExaminate === 'object') {
|
||||||
|
@@ -163,7 +163,7 @@ export class WebscriptComponent {
|
|||||||
let datatableShow = true;
|
let datatableShow = true;
|
||||||
try {
|
try {
|
||||||
if (!data.schema) {
|
if (!data.schema) {
|
||||||
data.schema = ObjectDataTableAdapter.generationSchema(data.data[0]);
|
data.schema = ObjectDataTableAdapter.generatechema(data.data[0]);
|
||||||
}
|
}
|
||||||
if (data.schema && data.schema.length > 0) {
|
if (data.schema && data.schema.length > 0) {
|
||||||
this.data = new ObjectDataTableAdapter(data.data, data.schema);
|
this.data = new ObjectDataTableAdapter(data.data, data.schema);
|
||||||
|
Reference in New Issue
Block a user