QueryColumn class
Represents some column which will be queried
Implements
Section titled “Implements”- expressionChanged
- fireChangedEvent
- getExpressionIndex
- getModel
- getQuery
- isHidden
- isJustSorted
- isReadOnly
- loadFromData
- saveToData
- setHidden
- setReadOnly
Constructors
Section titled “Constructors”constructor
Section titled “constructor”the default constructor.
⊕ new QueryColumn(query: Query,justsorted?: boolean
): QueryColumn
Parameters:
Section titled “Parameters:”- query: Query
- justsorted:
boolean
, Default value =false
Public Properties
Section titled “Public Properties”blockId
Section titled “blockId”The block ID.
● blockId: string
caption
Section titled “caption”The caption.
● caption: string
enabled
Section titled “enabled”Column is enabled
● enabled: boolean
= true
The column expression.
● expr: Expression
params
Section titled “params”The parameters associated with this column
● params: QueryParam[] = []
sortIndex
Section titled “sortIndex”The index of the column in the sorting list.
● sortIndex: number
sorting
Section titled “sorting”Column sorting direction
● sorting: SortDirection
Public Accessors
Section titled “Public Accessors”⇄ get id(): string
Returns string
Public Methods
Section titled “Public Methods”expressionChanged
Section titled “expressionChanged”▸ expressionChanged(expr: Expression,oldValue: string
): void
Parameters:
Section titled “Parameters:”- expr: Expression
- oldValue:
string
Returns void
fireChangedEvent
Section titled “fireChangedEvent”▸ fireChangedEvent(): void
Returns void
getExpressionIndex
Section titled “getExpressionIndex”▸ getExpressionIndex(expr: Expression): number
Parameters:
Section titled “Parameters:”- expr: Expression
Returns number
getModel
Section titled “getModel”▸ getModel(): DataModel
Returns DataModel
getQuery
Section titled “getQuery”▸ getQuery(): Query
Returns Query
isHidden
Section titled “isHidden”Indicates whether this column is invisible
▸ isHidden(): boolean
Returns boolean
isJustSorted
Section titled “isJustSorted”Indicates whether this column is just-sorted
▸ isJustSorted(): boolean
Returns boolean
isReadOnly
Section titled “isReadOnly”Indicates whether this column is read-only
▸ isReadOnly(): boolean
Returns boolean
loadFromData
Section titled “loadFromData”Loads column from its JSON representation object.
▸ loadFromData(model: DataModel,colData: QueryColumnData): void
Parameters:
Section titled “Parameters:”- model: DataModel - The Data Model.
- colData: QueryColumnData - The JSON representation object.
Returns void
saveToData
Section titled “saveToData”Saves the column to a data transfer object (ready for sending to the server-side) .
▸ saveToData(): QueryColumnData
Returns QueryColumnData - An plain object that represents the column.
setHidden
Section titled “setHidden”▸ setHidden(value: boolean
): void
Parameters:
Section titled “Parameters:”- value:
boolean
Returns void
setReadOnly
Section titled “setReadOnly”▸ setReadOnly(value: boolean
): void
Parameters:
Section titled “Parameters:”- value:
boolean
Returns void