Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/ItemTable/ItemTableModels"

Index

Enumerations

Interfaces

Type aliases

Variables

Type aliases

HeaderType

HeaderType: "Item" | "Claim/Target" | "Subject" | "Grade" | "Item Type"

Variables

Const headerColumns

headerColumns: ColumnGroup[] = [{header: "Item",headerClassName: "item",compare: (a, b) => a.itemKey - b.itemKey,cols: [{accessor: label => label.itemKey,className: "item"}]},{header: "Subject",headerClassName: "subject",cols: [{ accessor: label => label.subjectLabel, className: "subject" }],compare: (a, b) => a.subjectCode.localeCompare(b.subjectCode)},{header: "Grade",headerClassName: "grade",cols: [{accessor: label => label.gradeLabel,className: "grade"}],compare: (a, b) => a.grade - b.grade},{header: "Claim/Target",headerClassName: "claimAndTarget",cols: [{accessor: card => card.claimLabel,className: "claim"},{accessor: card => card.targetId,className: "target",helpText: card => card.targetDescription}],compare: (a, b) => {let direction;if (a.claimCode < b.claimCode || a.targetId < b.targetId) {direction = SortDirection.Ascending;} else if (a.claimCode > b.claimCode || a.targetId > b.targetId) {direction = SortDirection.Descending;} else {direction = SortDirection.NoSort;}return direction;}},{header: "Item Type",headerClassName: "item-type",cols: [{accessor: label => label.interactionTypeLabel,className: "item-type"}],compare: (a, b) =>a.interactionTypeCode.localeCompare(b.interactionTypeCode)}]

Generated using TypeDoc