APIs

Show:

Mixin for controller, that pagination support.

Methods

_addPageNumberIntoArray

(
  • arr
  • pageNumber
  • isEllipsis
)
private

Add page number into array.

Parameters:

  • arr Array

    Array pages.

  • pageNumber Number

    Number of page.

  • isEllipsis Boolean

    If true this page not showing in list.

_checkPageNumber

(
  • pageNum
)
Boolean private

Check there is a page with this number.

Parameters:

  • pageNum Number

    Number of page.

Returns:

Boolean:

If page exists, return pageNum, else, return lastPage.

_createColumn

() private

Create the column.

_filtersPredicate

(
  • componentName
)
BasePredicate | Undefined private

Return predicate for QueryBuilder or undefined.

Parameters:

  • componentName String

    Component name.

Returns:

BasePredicate | Undefined:

Predicate for QueryBuilder or undefined.

_generateColumns

() private

Generate the columns.

_getGeneratedColumns

(
  • projectionAttributes
  • settingsSource
  • fixedColumns
  • colsOrder
  • sorting
)
private

Get columns info.

Parameters:

_getLastPage

(
  • perPage
  • count
)
Number private

Get number last page.

Parameters:

  • perPage Number

    Count records on page.

  • count Number

    Total count records.

Returns:

Number:

Number last page.

_reloadListByName

(
  • componentName
)
private

Reloads list's data by name.

Parameters:

  • componentName String

    Component name.

_showConfigDialog

(
  • componentName
  • settingName
  • settingsSource
  • isExportExcel
  • immediateExport
)
private

Show columns config dialog.

Parameters:

_showSortGeDialog

(
  • componentName
  • useSidePageMode
  • modelProjection
  • geSorting
)
private

Show columns config dialog for groupedit.

Parameters:

actions.firstPage

()

Transition to first page.

actions.getGeneratedColumns

(
  • componentName
  • settingName
  • modelProjection
  • geSorting
)

Show columns config dialog.

Parameters:

  • componentName Object

    Component name.

  • settingName Object

    Setting name.

  • modelProjection Object

    Model projection.

  • geSorting Object

    Current sorting.

actions.gotoPage

(
  • pageNum
)

Transition to page with number.

Parameters:

  • pageNum Number

    Number 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:

  • componentName String

    Component name.

actions.showAdvLimitDialog

(
  • componentName
  • advLimitName
)

Show adv limit config dialog.

Parameters:

  • componentName Object

    Component name.

  • advLimitName Object

    Adv limit name.

actions.showConfigDialog

(
  • componentName
  • settingName
  • useSidePageMode
  • isExportExcel
  • immediateExport
)

Show columns config dialog.

Parameters:

  • componentName Object

    Component name.

  • settingName Object

    Setting name.

  • useSidePageMode Object

    Indicates when use side page mode.

  • isExportExcel Object

    Indicates if it's export excel dialog.

  • immediateExport Object

    Indicate if auto export is needed.

actions.showFiltersDialog

(
  • componentName
  • filterColumns
)

Show filters dialog.

Parameters:

  • componentName Object

    Component name.

  • filterColumns Object

    columns with available filters.

actions.showSortGeDialog

(
  • componentName
  • useSidePageMode
  • modelProjection
  • geSorting
)

Show columns config dialog for groupedit.

Parameters:

  • componentName Object

    Component name.

  • useSidePageMode Object

    Indicates when use side page mode.

  • modelProjection Object

    Model projection.

  • geSorting Object

    Current sorting.

setSorting

(
  • componentName
  • sorting
)

Sets sorting and reload component content by component name.

Parameters:

  • componentName String

    Component name.

  • sorting Array

    Sorting object.

Properties

_groupEditEventsService

Service private

Service that triggers FlexberryGroupeditComponent events.

advLimit

AdvLimitService

Service for managing advLimits for lists.

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:

  • [componentName=undefined] String optional
  • [componentProperties=null] String optional

currentColumnsWidths

Object

Columns widtghs for current component.

filtersDialogController

Ember.InjectedProperty

Controller to show filters modal window.

Default: Ember.inject.controller('filters-dialog')

hasNextPage

Boolean

If true next page exists.

hasPreviousPage

Boolean

If true previous page exists.

multiListSettings

Object

Settings for all lists on form.

objectlistviewEvents

Service

Service that triggers objectlistview events.

page

Number

Start page.

Default: 1

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 true this page not showing in list.

perPage

Number

Count records on page.

Default: 5

perPageValue

Number

Get or set perPage value.

perPageValues

Array

User selectable options values for perPage.

Default: [5, 10, 20, 50]

queryParams

Array

Defines which query parameters the controller accepts. More info..

Default: ['page', 'perPage']

recordsTotalCount

Number

Total count records.