roger_ui v0.1.8 RogerUi.Helpers.Page
Helper to split data into pages of data
Link to this section Summary
Functions
Slice enumerable into pages of a given page_size and returns a map with a list, which represents the page of enumerable in the given page_number and the total elements of the enumerable. Max page_size is 100 and min page_number is 1
Link to this section Functions
Link to this function
extract(enumerable, name, page_size, page_number)
extract( enumerable :: Enumerable.t(), name :: String.t(), page_size :: integer(), page_number :: integer() ) :: %{}
Slice enumerable into pages of a given page_size and returns a map with a list, which represents the page of enumerable in the given page_number and the total elements of the enumerable. Max page_size is 100 and min page_number is 1