Run in your angular project folder:
npm install ng-eventstore-listing
import { NgEventstoreListingModule } from 'ng-eventstore-listing';
...
imports: [
...
NgEventstoreListingModule
]
...
<lib-ng-eventstore-listing
[idPropertyName]="idPropertyName"
[inputDataList]="data"
[itemComponentClass]="rowComponentClass">
</lib-ng-eventstore-listing>
Input | Default | Type | Required? | Description |
---|---|---|---|---|
itemComponentClass | null | Component | Yes | Type / Class of the component that will be used as the rows |
inputDataList | [] | any[] | Yes | The array of items that will be displayed |
idPropertyName | 'id' | string | No | The identifying property existing in each item of the array in inputDataList |
lookups | {} | object | No | Optional lookups to be accessible inside the items component |
listHeaderGroups | { groups: [] } | No | ListHeaderGroups | Optional object describing the headers of the table rows |
subscriptionTopicConfigurations | [] | No | SubscriptionTopicConfiguration | Array of configurations for UI updating subscriptions |
Output | Description |
---|---|
updateEmitter | Fires whenever there is an update call from the row component |
updateLookupsEmitter | Fires whenever there is a request to update the lookups from the API |
showModalEmitter | Fires when there is a request to open a modal |
deleteEmitter | Fires when there is a request for a delete function from the rows |
sortEmitter | Fires when there is a request to sort the list |
updateDataList | Fires when there is a request to update the immutable list |
Property | Type | Required | Description |
---|---|---|---|
streamKey | string | Yes | - |
context | string | Yes | - |
idPropertyName | string | Yes | - |
getOffsetsFunction | Function | Yes | - |
Property | Type | Required? | Description |
---|---|---|---|
apiVersion | string | Yes | - |
data | { items: number[] } | Yes | - |
Property | Type | Required? | Description |
---|---|---|---|
generalRowClassName | string | No | - |
groups | ListHeaderGroup[] | Yes | - |
Property | Type | Required? | Description |
---|---|---|---|
className | string | No | - |
listHeaders | ListHeader[] | Yes | - |
Property | Type | Required? | Description |
---|---|---|---|
displayName | string | No | - |
sortProperty | string | No | - |
className | string | No | - |