Datatable
Extends:
Datatable Class
Constructor Summary
Public Constructor | ||
public |
constructor(datatableData: object, bid: Bid) Creates an instance of Datatable. |
Member Summary
Public Members | ||
public |
Reference to the bid that the datatable belongs to. |
|
public get |
Columns including any linked inventory data |
|
public get |
Gets the configuration information for the bid entity. |
|
public get |
this get was deprecated. Definition ids will become obsolete in planned data structure upgrade.
Gets the datatables's definition id. |
|
public get |
Currently linked inventory type |
|
public get |
Rows including any linked inventory data |
Method Summary
Public Methods | ||
public |
dependants(): BidEntity[] Gets a list of bid entities that relies on the datatable instance. |
|
public |
dirty() Flags the datatable and corresponding bid as dirty and to be saved. |
|
public |
exportData(alwaysIncludeConfig: boolean): object Exports datatable to core structure. |
|
public |
Find the first row in the datatable which has the given vendor part linked. |
|
public |
getColumnValues(columnId: string): object[] Gets a list of column values. |
|
public |
getOptions(): object[] Returns an array of the datatable row options based on the datatable key column. |
|
public |
Retrieves a cell value. |
|
public |
Determines if the datatable is has changed for it's original data. |
|
public |
Reload the datatable. |
Inherited Summary
From class AdvanceEventEmitter | ||
public |
Maximum number of events fired for the requester before events stop. |
|
public |
|
|
public |
|
|
public |
removeListenerByRequester(eventName: string, requesterId: string) Removes event listeners by event and requesterId. |
From class BidEntity | ||
public get |
Determine if the entity is in an assembly |
|
public get |
Gets the id of the bid entity. |
|
public get |
Gets the bid entity title. |
|
public set |
Sets the bid entity title. |
|
public get |
Gets the bid entity type. |
|
public abstract |
Assesses bid entity. |
|
public |
dependants(): BidEntity[] Gets an array of depndants that rely on the bid entity. |
|
public |
dependencies(): BidEntity[] Gets all the dependencies that the bid entity relies on. |
|
public |
dirty() Flags the bid entity as dirty and to be saved. |
|
public |
exportData(): object Exports the internal data for the bid entity. |
|
public |
hasNullDependency(field: string): boolean Determines if bid entity relies on a null or undefined dependency value |
|
public |
async initSaveChangeLog(originalValue: *, newValue: *, valueType: *, entityProperty: *, metaData: *): * |
|
public |
Determines of bid entity is dirty. |
|
public |
pristine() Marks the bid entity as clean. |
Public Constructors
Public Members
Public Methods
public dependants(): BidEntity[] source
Gets a list of bid entities that relies on the datatable instance.
Override:
BidEntity#dependantspublic dirty() source
Flags the datatable and corresponding bid as dirty and to be saved.
Override:
BidEntity#dirtypublic exportData(alwaysIncludeConfig: boolean): object source
Exports datatable to core structure.
Override:
BidEntity#exportDataParams:
Name | Type | Attribute | Description |
alwaysIncludeConfig | boolean |
|
Will include config object in export regardless of changed status. |
public findRowByExternalPartId(vendorName: string, vendorPartId: string | number): string | undefined source
Find the first row in the datatable which has the given vendor part linked.
public getColumnValues(columnId: string): object[] source
Gets a list of column values.
Params:
Name | Type | Attribute | Description |
columnId | string |
public getOptions(): object[] source
Returns an array of the datatable row options based on the datatable key column.
public getValue(columnId: string, rowId: string): string | number | boolean source
Retrieves a cell value.
public isDirty(): boolean source
Determines if the datatable is has changed for it's original data.