How to use the svelte-native/dom.NativeElementPropType.ObservableArray 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 / chart / index.ts View on Github external
constructor() {
        super('pallete', Palette, "palettes", { "entries": PropType.ObservableArray })
    }
}
github halfnelson / svelte-native-nativescript-ui / src / chart / index.ts View on Github external
constructor(tagName: string, viewClass: new () => T) {
        super(tagName, viewClass, null, { "series": PropType.ObservableArray, 
                                    "annotations": PropType.ObservableArray, 
                                    "palettes": PropType.ObservableArray});
    }
}
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")
    }
}
github halfnelson / svelte-native-nativescript-ui / src / chart / index.ts View on Github external
constructor(tagName: string, viewClass: new () => T) {
        super(tagName, viewClass, null, { "series": PropType.ObservableArray, 
                                    "annotations": PropType.ObservableArray, 
                                    "palettes": PropType.ObservableArray});
    }
}
github halfnelson / svelte-native-nativescript-ui / src / chart / index.ts View on Github external
constructor(tagName: string, viewClass: new () => T) {
        super(tagName, viewClass, null, { "series": PropType.ObservableArray, 
                                    "annotations": PropType.ObservableArray, 
                                    "palettes": PropType.ObservableArray});
    }
}