Update PageView to have Context
Closed this issue · 0 comments
pedronaveszup commented
EPIC for reference - ZupIT/beagle#422
You must refactor this component using new context features.
New PageView interface:
data class PageView(
val children: List<ServerDrivenComponent>,
override val context: ContextData? = null,
val onPageChange: List<Action>? = null,
val currentPage: Bind<Int>? = null
) : ServerDrivenComponent, ContextComponent
data class PageIndicator(
val selectedColor: String?,
val unselectedColor: String?,
var numberOfPages: Int?,
var currentPage: Bind<Int>?
) : ServerDrivenComponent
- Angular -> ZupIT/beagle-web-angular#163
- React -> ZupIT/beagle-web-react#110
- Playground -> https://github.com/ZupIT/beagle-playground/pull/54