How to use the svelte-native/dom.NativeViewElementNode 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 / gauge / 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)
            
        registerElement('radRadialGauge', () => new NativeViewElementNode('radRadialGauge', RadRadialGauge, null, { "scales": NativeElementPropType.ObservableArray } ));
        registerConfigElement('radialScale', RadialScale, "scales", { "indicators": NativeElementPropType.ObservableArray })
        registerConfigElement('radialNeedle', RadialNeedle, "indicators")
        registerConfigElement('radialBarIndicator', RadialBarIndicator, "indicators")
        registerConfigElement('scaleStyle', ScaleStyle, "scaleStyle")
        registerConfigElement('barIndicatorStyle', BarIndicatorStyle, "indicatorStyle")
    }
}