PageControl

Page indicator, typically used in paged scroll-views

PROPS

namedescriptiontypedefault
containerStyleAdditional styles for the top containerunion
numOfPagesTotal number of pagesnumber
currentPageZero-based index of the current pagenumber
onPagePressAction handler for clicking on a page indicatorfunc
colorColor of the selected page dot and, if inactiveColor not passed, the border of the not selected pagesstring
inactiveColorColor of the unselected page dots and the border of the not selected pagesstring
sizeThe size of the page indicatornumber10
enlargeActiveWhether to enlarge the active page indicatorboolfalse
spacingThe space between the siblings page indicatorsnumber4

EXAMPLE

CODE SAMPLE

See example here.