/** * Created by Jacky.gao on 2016/9/21. */ import Col from './Col.js'; export default class ScoreCol extends Col{ constructor(table,name,width){ super(table); this.name=name; this.width=width; this.type='score'; this.init(); } init(){ this.td=$(``); this.td.append(this.buildColResizeTrigger()); const container=$(`${this.name}`); this.td.append(container); this.scoreCardTable.headerRow.append(this.td); this.bindColResize(); } toXml(){ let xml=" score-col-width=\""+this.width+"\" score-col-name=\""+this.name+"\""; return xml; } }