setDirection method
- @ControllerProps(NodeProps.kDirection)
- ViewPagerRenderViewModel renderViewModel,
- String direction
Implementation
@ControllerProps(NodeProps.kDirection)
void setDirection(ViewPagerRenderViewModel renderViewModel, String direction) {
if (direction == 'vertical') {
renderViewModel.isVertical = true;
} else {
renderViewModel.isVertical = false;
}
}