Constructors
constructor
- new Datasource<T>(dataContainer?, options?): Datasource<T>
Parameters
Optional
dataContainer: DataContainerOptional
options: DatasourceConfigOptions
Properties
currentEntity
Accessors
type
- get type(): string
Returns string
Methods
__callSubscribers
- __callSubscribers(event, data?): void
Internal
Parameters
- event: string
- data: {} = {}
Returns void
__select
- __select(row): void
Internal
Returns void
addEventListener
- addEventListener(callable): void
Returns void
addNewEmpty
- addNewEmpty(defaultData?, scrollto?): void
Returns void
clearMarkedForDeletion
- clearMarkedForDeletion(): void
Returns void
collapseGroup
- collapseGroup(id?): void
Returns void
deSelectAll
- deSelectAll(triggerEvent?): void
Parameters
- triggerEvent: boolean = false
Returns void
expandGroup
- expandGroup(id?): void
Returns void
filter
- filter(ObjFilter?): void
Returns void
getAllData
- getAllData(): EntityUnion<T>[]
getChanges
- getChanges(): any
Returns any
getDataContainer
- getDataContainer(): DataContainer
getDateFormater
- getDateFormater(): DateAndNumberFormater
Returns DateAndNumberFormater
getExpanded
- getExpanded(): string[]
Returns string[]
getFilter
- getFilter(): FilterArgument
getFilterString
- getFilterString(ctx?): string
Returns string
getGrouping
- getGrouping(): GroupArgument[]
getLastSorting
- getLastSorting(): SortArgument[]
getMarkedForDeletion
- getMarkedForDeletion(): EntityUnion<T>[]
getNumberFormater
- getNumberFormater(): DateAndNumberFormater
Returns DateAndNumberFormater
getOrderBy
- getOrderBy(): SortArgument[]
getRow
- getRow(rowNo): EntityUnion<T>
getRows
- getRows(onlyDataRows?): EntityUnion<T>[]
Parameters
Optional
onlyDataRows: boolean
getSelectedRows
- getSelectedRows(): Entity[]
getSelection
- getSelection(): Selection
getSelectionMode
- getSelectionMode(): SelectionMode
getValueFormater
- getValueFormater(): ValueFormater
group
- group(group, add?): void
Returns void
length
- length(onlyDataRows?): number
Parameters
Optional
onlyDataRows: boolean
Returns number
markForDeletion
- markForDeletion(data, all?): void
Returns void
reloadDatasource
- reloadDatasource(): void
Returns void
removeData
- removeData(data, all?, rerunFilters?): Entity[]
Parameters
- data: Entity | Entity[]
- all: boolean = false
- rerunFilters: boolean = true
removeEventListener
- removeEventListener(callable): void
Returns void
removeGroup
- removeGroup(group?): void
Returns void
resetData
- resetData(): void
Returns void
resetDataSelectionOnly
- resetDataSelectionOnly(): void
Returns void
resetSort
- resetSort(defaultSortAttribute?): void
Parameters
Optional
defaultSortAttribute: string
Returns void
select
- select(row?, triggerSelect?): void
Parameters
Optional
row: numberOptional
triggerSelect: boolean
Returns void
selectAll
- selectAll(): void
Returns void
selectFirst
- selectFirst(): void
Returns void
selectLast
- selectLast(): void
Returns void
selectNext
- selectNext(): void
Returns void
selectPrev
- selectPrev(): void
Returns void
setData
- setData(data, add?, reRunFilter?): void
Parameters
- data: any[]
- add: boolean = false
- reRunFilter: boolean = false
Returns void
setDateFormater
- setDateFormater(formater): void
Parameters
- formater: DateAndNumberFormater
Returns void
setDates
- setDates(x): void
Returns void
setExpanded
- setExpanded(x): void
Returns void
setFilter
- setFilter(filter): void
Returns void
setGrouping
- setGrouping(group): void
Returns void
setLocalCompare
- setLocalCompare(code, options?): void
Parameters
- code: string
Optional
options: any
Returns void
setNumberFormater
- setNumberFormater(formater): void
Parameters
- formater: DateAndNumberFormater
Returns void
setOrderBy
- setOrderBy(param, add?): void
Returns void
setRowAsCurrentEntity
- setRowAsCurrentEntity(row): void
Returns void
setSelectionMode
- setSelectionMode(mode): void
Returns void
setValueFormater
- setValueFormater(formater): void
Returns void
sort
- sort(args?, add?): void
Returns void
sortReset
- sortReset(): void
Returns void
Helper class for calling internal sort, filter and grouping classesS