How to use the svelte-native/dom.NativeElementPropType.Array function in svelte-native

To help you get started, we’ve selected a few svelte-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github halfnelson / svelte-native-nativescript-ui / src / dataform / index.ts View on Github external
constructor() {
        super('radDataForm',  RadDataForm, null, { "groups": NativeElementPropType.Array, "properties": NativeElementPropType.Array});
    }
github halfnelson / svelte-native-nativescript-ui / src / dataform / index.ts View on Github external
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());
    }
}
github halfnelson / svelte-native-nativescript-ui / src / dataform / index.ts View on Github external
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());
    }
}