Objects
NascentError
NascentException
NascentPermissions
NascentTableColumn
NascentTableRefineOptions
NascentUser
NascentWarning
Types
NascentPermissionSet
NascentSerializationMap
NascentTableContentDelegate
NascentTableItemQuery
UI
NascentPermissionsPanel
NascentTable
Utilities
NascentProcessor
NascentTableController
NascentUserManager
Firebase
NascentFirestoreMappedReference
NascentFirestoreObject

CLASS

NascentTableController<O extends any>

Controller for managing content and functionality for a NascentTable instance.

Overview

Controller instances connect to a NascentTable instance to manage content that is displayed and how it's displayed.

Constructors

NameDescription
NascentTableController(
 {List<NascentTableColumn<O>> this.columns}
 {Integer this.pageLimit}
)
Creates a controller instance.

Arguments

List<NascentTableColumn<O>>this.columns
Integerthis.pageLimit

Instance Properties

TypeNameDescription
List<Integer>checkedItemsList containing indexes of all displayed items that are currently checked.
List<NascentTableColumn<O>>columnsA list of columns included in the table.
IntegercurrentPageThe currently selected page.
IntegerpageLimitThe maximum number of items that should be displayed on each page.
List<O>itemsList of the currently displayed items.
NascentTableRefineOptionsrefineOptionsOptions for sorting and filtering table content. Defaults to displaying the first indexed column in ascending order.

Instance Methods

NameReturn TypeDescription
refresh()Promise<void>Refreshes the items displayed in the table.
setPage(
 Integer pageNumber
)
voidDisplays the provided page of items.

Arguments

IntegerpageNumber
setPageLimit(
 Integer limit
)
voidSets the item limit for each page.

Arguments

Integerlimit
setRefineOptions(
 NascentTableRefineOptions refineOptions
)
voidSets the refine options for the table.

Arguments

NascentTableRefineOptionsrefineOptions
toggleAllChecks()voidToggles the checked status of all displayed items. If all items are already checked, they will be unchecked. Otherwise, they will be all checked.
toggleCheck(
 Integer index
)
voidToggles the checked status of an item from a given index.

Arguments

Integerindex