import {LayoutSection, LayoutProperty, LayoutSectionKeyEnum} from "./LayoutSection"; import {Layout} from "./Layout"; import {CommonProperty, ImageProperty, BoxProperty, DataTableCellProperty, TextProperty} from "../properties/define"; export default class DataTableCellItemLayout extends Layout { constructor() { super(); this.sections.push(this.value()); this.sections.push(this.preference()); } private value(): LayoutSection{ const section = new LayoutSection(LayoutSection.LAYOUT_SECTION[LayoutSectionKeyEnum.DATA]); section.properties.push( new LayoutProperty(DataTableCellProperty.text) ) return section; } private preference(): LayoutSection { const section = new LayoutSection(LayoutSection.LAYOUT_SECTION[LayoutSectionKeyEnum.PREFERENCE]); section.properties.push( new LayoutProperty(DataTableCellProperty.hAlign), new LayoutProperty(DataTableCellProperty.vAlign), new LayoutProperty(DataTableCellProperty.font), new LayoutProperty(DataTableCellProperty.textColor), new LayoutProperty(DataTableCellProperty.backColor) // new LayoutProperty(DataTableCellProperty.border) ); return section; } private layout(): LayoutSection { const section = new LayoutSection(LayoutSection.LAYOUT_SECTION[LayoutSectionKeyEnum.LAYOUT]); section.properties.push( // new LayoutProperty(DataTableCellProperty.width), // new LayoutProperty(DataTableCellProperty.height) // 'foreColor' ); return section; } }