Digital ACT-191 ONEAPP-6830 story: scroll thumb on given position value
This commit is contained in:
parent
503449cd66
commit
b91e931f47
@ -51,6 +51,7 @@ class CarouselScrollbarViewConttroller: BaseViewController<CarouselScrollbar> {
|
||||
return
|
||||
}
|
||||
self?.component.numberOfSlides = number.intValue
|
||||
self?.component.position = Int(self?.positionTextField.text ?? "1")
|
||||
}.store(in: &subscribers)
|
||||
|
||||
positionTextField
|
||||
@ -67,7 +68,7 @@ class CarouselScrollbarViewConttroller: BaseViewController<CarouselScrollbar> {
|
||||
|
||||
func setupModel() {
|
||||
//setup UI
|
||||
component.numberOfSlides = 8
|
||||
component.numberOfSlides = 3
|
||||
surfacePickerSelectorView.text = component.surface.rawValue
|
||||
disabledSwitch.isOn = !component.isEnabled
|
||||
slidesTextField.text = String(component.numberOfSlides ?? 1)
|
||||
@ -82,6 +83,7 @@ class CarouselScrollbarViewConttroller: BaseViewController<CarouselScrollbar> {
|
||||
|
||||
layoutPickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||
self?.component.selectedLayout = item
|
||||
self?.component.position = Int(self?.positionTextField.text ?? "1")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user