// Note most input fields should match class fields for GridColumn
@Input() label: string;
+ // Set the render time value.
+ // This does NOT fire the onChange handler.
+ @Input() initialValue: boolean;
+
// This is an input instead of an Output because the handler is
// passed off to the grid context for maintenance -- events
// are not fired directly from this component.
const cb = new GridToolbarCheckbox();
cb.label = this.label;
cb.onChange = this.onChange;
+ cb.isChecked = this.initialValue;
this.grid.context.toolbarCheckboxes.push(cb);
}