mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
473 B
15 lines
473 B
import { Collection } from '../../common';
|
|
import { DataRecordProps } from '../types';
|
|
import DataRecord from './DataRecord';
|
|
import DataSource from './DataSource';
|
|
|
|
export default class DataRecords extends Collection<DataRecord> {
|
|
dataSource: DataSource;
|
|
|
|
constructor(models: DataRecord[] | DataRecordProps[], options: { dataSource: DataSource }) {
|
|
super(models, options);
|
|
this.dataSource = options.dataSource;
|
|
}
|
|
}
|
|
|
|
DataRecords.prototype.model = DataRecord;
|
|
|