import {LayoutSection, LayoutProperty, LayoutSectionKeyEnum} from "./LayoutSection"; import {Layout} from "./Layout"; import {CommonProperty, ImageProperty, BoxProperty, DataTableProperty} from "../properties/define"; export default class DataTableItemLayout extends Layout { constructor() { super(); this.sections.push(this.preference()); this.sections.push(this.layout()); } private preference(): LayoutSection { const section = new LayoutSection(LayoutSection.LAYOUT_SECTION[LayoutSectionKeyEnum.PREFERENCE]); section.properties.push( new LayoutProperty(DataTableProperty.borderColor) // new LayoutProperty(CommonProperty.backColor), // new LayoutProperty(CommonProperty.foreColor) ); return section; } private layout(): LayoutSection { const section = new LayoutSection(LayoutSection.LAYOUT_SECTION[LayoutSectionKeyEnum.LAYOUT]); section.properties.push( new LayoutProperty(CommonProperty.position), new LayoutProperty(CommonProperty.size) // new LayoutProperty(CommonProperty.x), // new LayoutProperty(CommonProperty.y), // new LayoutProperty(CommonProperty.width), // new LayoutProperty(CommonProperty.height) // 'foreColor' ); return section; } }