PaginatedController Class
addon/mixins/paginated-controller.js:8
Mixin for controller, that pagination support.
Item Index
Methods
- _addPageNumberIntoArray
- _checkPageNumber
- _createColumn
- _filtersPredicate
- _generateColumns
- _getGeneratedColumns
- _getLastPage
- _reloadListByName
- _showConfigDialog
- _showSortGeDialog
- actions.firstPage
- actions.getGeneratedColumns
- actions.gotoPage
- actions.lastPage
- actions.nextPage
- actions.previousPage
- actions.reloadListByName
- actions.showAdvLimitDialog
- actions.showConfigDialog
- actions.showFiltersDialog
- actions.showSortGeDialog
- setSorting
Methods
_addPageNumberIntoArray
-
arr -
pageNumber -
isEllipsis
Add page number into array.
_checkPageNumber
-
pageNum
Check there is a page with this number.
Parameters:
-
pageNumNumberNumber of page.
Returns:
If page exists, return pageNum, else, return lastPage.
_createColumn
()
private
Create the column.
_filtersPredicate
-
componentName
Return predicate for QueryBuilder or undefined.
Parameters:
-
componentNameStringComponent name.
Returns:
Predicate for QueryBuilder or undefined.
_generateColumns
()
private
Generate the columns.
_getGeneratedColumns
-
projectionAttributes -
settingsSource -
fixedColumns -
colsOrder -
sorting
Get columns info.
_getLastPage
-
perPage -
count
Get number last page.
Returns:
Number last page.
_reloadListByName
-
componentName
Reloads list's data by name.
Parameters:
-
componentNameStringComponent name.
_showConfigDialog
-
componentName -
settingName -
settingsSource -
isExportExcel -
immediateExport
Show columns config dialog.
_showSortGeDialog
-
componentName -
useSidePageMode -
modelProjection -
geSorting
Show columns config dialog for groupedit.
actions.firstPage
()
Transition to first page.
actions.getGeneratedColumns
-
componentName -
settingName -
modelProjection -
geSorting
Show columns config dialog.
actions.gotoPage
-
pageNum
Transition to page with number.
Parameters:
-
pageNumNumberNumber of page.
actions.lastPage
()
Transition to last page.
actions.nextPage
()
Transition to next page.
actions.previousPage
()
Transition to previous page.
actions.reloadListByName
-
componentName
Reload list's data by name.
Parameters:
-
componentNameStringComponent name.
actions.showAdvLimitDialog
-
componentName -
advLimitName
Show adv limit config dialog.
actions.showConfigDialog
-
componentName -
settingName -
useSidePageMode -
isExportExcel -
immediateExport
Show columns config dialog.
actions.showFiltersDialog
-
componentName -
filterColumns
Show filters dialog.
actions.showSortGeDialog
-
componentName -
useSidePageMode -
modelProjection -
geSorting
Show columns config dialog for groupedit.
Properties
advLimit
AdvLimit
Service for managing advLimits for lists.
advLimitController
Ember.InjectedProperty
Controller to show advlimit config modal window.
Default: Ember.inject.controller('advlimit-dialog')
cellComponent
Object
Default cell component that will be used to display values in columns cells.
Sub-properties:
filtersDialogController
Ember.InjectedProperty
Controller to show filters modal window.
Default: Ember.inject.controller('filters-dialog')
objectlistviewEvents
Service
Service that triggers objectlistview events.
pages
Array
Array of objects corresponding to list of pages.
Each page is presented as object with following properties:
- number - Number of page.
- isCurrent - Page is current.
- isEllipsis - If
truethis page not showing in list.
queryParams
Array
Defines which query parameters the controller accepts. More info..
Default: ['page', 'perPage']
Flexberry Documentation