ControlMapper
Module for mapping controls content types and / or field settings to specified front-end controls
let controlMapper = new ControlMapper(MyBaseControlClass, myConfigFactory, DefaultViewComponent, DefaultFieldComponent) .SetupFieldSettingDefault(FieldSettings.ShortTextFieldSetting, (setting) => { switch (setting.Name) { case 'Name': return NameField; case 'DisplayName': return DisplayName; default: break; } return ShortText; })
Generated using TypeDoc
ControlMapper
Module for mapping controls content types and / or field settings to specified front-end controls
let controlMapper = new ControlMapper(MyBaseControlClass, myConfigFactory, DefaultViewComponent, DefaultFieldComponent) .SetupFieldSettingDefault(FieldSettings.ShortTextFieldSetting, (setting) => { switch (setting.Name) { case 'Name': return NameField; case 'DisplayName': return DisplayName; default: break; } return ShortText; })