export class AppComponent implements OnInit {
@ViewChild("grid")
public grid: GridComponent;
. . . .
ngOnInit() {
. . . .
this.templateOptions = {
ui: {
create: (args: { target: Element, column: Object }) => {
let db: Object = new DataManager(this.data);
let flValInput: HTMLElement = createElement('input', { className: 'flm-input' });
args.target.appendChild(flValInput);
var _this = this;
this.dateRangePicker = new DateRangePicker({
min: new Date('1/15/2019'),
max: new Date('12/20/2019'), // you can only select the date between this range
change: function (e) {
. . . .
},
});
this.dateRangePicker.appendTo(flValInput);
},
. . . .
}
}
}
} |