public PersistedRemotelyUnboundColumn( EditableUnboundColumn <RecordT, DataT> editable, IConvertingEditor <DataT> editorBuilder, Action <RecordT, DataT> setValue, params Validate <DataT>[] validators) { Editable = editable; SetValue = setValue; Validators = validators; BuildEditor = editorBuilder.Build; }
public PersistedRemotelyUnboundColumn( EditableUnboundColumn <RecordT, DataT> editable, Func <IReadWriteValueView <HTMLElement, DataT> > buildEditor, Action <RecordT, DataT> setValue, params Validate <DataT>[] validators) { Editable = editable; SetValue = setValue; Validators = validators; BuildEditor = m => { var result = buildEditor(); result.BindReadWriteAndInitialize(m); return(result); }; }