Without listLayout list renders but table headers are incorrect
Error in browser: Could not set element '#main > .record .list-container'. bullbone.js:1232:32
Code:
const collection = await this.getCollectionFactory().create('MyEntity'); // const collection = new Collection(); collection.url = `MyEntity/${this.model.id}/sub_entity`; collection.offset = 0; collection.maxSize = 20; collection.data.select = ['status', 'description'].join(','); collection.orderBy = 'createdAt'; collection.order = 'desc'; collection.fetch(); await this.createView('list', 'views/record/list', { selector: '.list-container', collection, rowActionsDisabled: true, buttonsDisabled: true, listLayout: [{ name: 'description' }] });
Comment