Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super('radDataForm', RadDataForm, null, { "groups": NativeElementPropType.Array, "properties": NativeElementPropType.Array});
}
static register() {
const registerConfigElement = (tag: string, native: new () => any, setsParentProp: string = null, propconfig: NativeElementPropConfig = {}) =>
registerNativeConfigElement(tag, () => native, setsParentProp, propconfig)
registerConfigElement('DataFormStackLayout', DataFormStackLayout, "layout");
registerConfigElement('DataFormGridLayout', DataFormGridLayout, "layout");
registerConfigElement('EntityProperty', EntityProperty, "properties", { "validators": NativeElementPropType.Array});
registerConfigElement('PropertyEditor', PropertyEditor, "editor");
registerConfigElement('PropertyEditorParams', PropertyEditorParams, "params");
registerConfigElement('PropertyEditorStyle', PropertyEditorStyle, "propertyEditorStyle");
registerConfigElement('PropertyGroup', PropertyGroup, "groups", { "properties": NativeElementPropType.Array });
registerConfigElement('EmailValidator', EmailValidator, "validators");
registerConfigElement('IsTrueValidator', IsTrueValidator, "validators");
registerConfigElement('NonEmptyValidator', NonEmptyValidator, "validators");
registerConfigElement('MaximumLengthValidator', MaximumLengthValidator, "validators");
registerConfigElement('MinimumLengthValidator', MinimumLengthValidator, "validators");
registerConfigElement('PhoneValidator', PhoneValidator, "validators");
registerConfigElement('RangeValidator', RangeValidator, "validators");
registerConfigElement('RegExValidator', RegExValidator, "validators");
registerElement('radDataForm', () => new RadDataFormElement());
}
}
static register() {
const registerConfigElement = (tag: string, native: new () => any, setsParentProp: string = null, propconfig: NativeElementPropConfig = {}) =>
registerNativeConfigElement(tag, () => native, setsParentProp, propconfig)
registerConfigElement('DataFormStackLayout', DataFormStackLayout, "layout");
registerConfigElement('DataFormGridLayout', DataFormGridLayout, "layout");
registerConfigElement('EntityProperty', EntityProperty, "properties", { "validators": NativeElementPropType.Array});
registerConfigElement('PropertyEditor', PropertyEditor, "editor");
registerConfigElement('PropertyEditorParams', PropertyEditorParams, "params");
registerConfigElement('PropertyEditorStyle', PropertyEditorStyle, "propertyEditorStyle");
registerConfigElement('PropertyGroup', PropertyGroup, "groups", { "properties": NativeElementPropType.Array });
registerConfigElement('EmailValidator', EmailValidator, "validators");
registerConfigElement('IsTrueValidator', IsTrueValidator, "validators");
registerConfigElement('NonEmptyValidator', NonEmptyValidator, "validators");
registerConfigElement('MaximumLengthValidator', MaximumLengthValidator, "validators");
registerConfigElement('MinimumLengthValidator', MinimumLengthValidator, "validators");
registerConfigElement('PhoneValidator', PhoneValidator, "validators");
registerConfigElement('RangeValidator', RangeValidator, "validators");
registerConfigElement('RegExValidator', RegExValidator, "validators");
registerElement('radDataForm', () => new RadDataFormElement());
}
}