Closed terreb closed 7 years ago
@terreb i don't if you can access to $parents from a view loaded with builder. I will do my tests later on and let you know. Thanks
You can follow this https://github.com/NativeScript/NativeScript/issues/3077
{N} Team provided an example for this that i will be testing. Thanks
It seems that $parents doesn't provide access to the native widget properties but it's binding context instead, so if you want to access the CarouselView properties, you have to expose them in the ViewModel like this:
get position(): number {
var page = frame.topmost().currentPage;
var slider = <CarouselView>page.getViewById("carouselView");
return slider.position;
}
ok, thanks
nativescript 2.3.0 tns-core-modules 2.3.0 tns-ios 2.3.0 nativescript-carousel-view 2.0.1 simulator iOS 9.3
How to reproduce: