Implements
Extends
Index
Constructors
Public Properties
Protected Properties
Public Methods
- addCondition
- addExpressionByOperand
- clearConditions
- expressionChanged
- fireChangedEvent
- getConditions
- getExpressionIndex
- getLevel
- getModel
- getOperatorId
- getParent
- getQuery
- isEmpty
- isGroup
- isInJoin
- isParameterized
- isReadOnly
- loadFromData
- removeConditionAt
- saveToData
- setInJoin
- setOperatorId
- setParameterized
- setParent
- setReadOnly
Constructors
constructor
The default constructor. ⊕ new ConditionEx(query: Query,tag?: CondTag): ConditionEx
Parameters:
Public Properties
blockId
The block id.
● blockId: string
enabled
● enabled: boolean
expressions
The list of expression.
● expressions: Expression[]
id
● id: string
justAdded
Condition enabled option.
● justAdded: boolean
linkType
The linking type.
● linkType: LinkType
tag
The condition tag.
● tag: CondTag
Protected Properties
_enabled
The value indicating whether this Condition is enabled.
● _enabled: boolean
_id
● _id: string
conditions
The list of conditions.
● conditions: Condition[]
parent
● parent: Condition
query
● query: Query
Public Methods
addCondition
▸ addCondition(cond: Condition): number
Parameters:
- cond: Condition
Returns number
addExpressionByOperand
▸ addExpressionByOperand(operand: Operand,val?: string
): Expression
Parameters:
- operand: Operand
- val:
string
, Optional
Returns Expression
clearConditions
▸ clearConditions(): void
Returns void
expressionChanged
▸ expressionChanged(expr: Expression,oldValue: string
): void
Parameters:
- expr: Expression
- oldValue:
string
Returns void
fireChangedEvent
▸ fireChangedEvent(condPart?: ConditionPart): void
Parameters:
- condPart: ConditionPart, Optional
Returns void
getConditions
▸ getConditions(): Condition[]
Returns Condition[]
getExpressionIndex
▸ getExpressionIndex(expr: Expression): number
Parameters:
- expr: Expression
Returns number
getLevel
▸ getLevel(): number
Returns number
getModel
▸ getModel(): DataModel
Returns DataModel
getOperatorId
▸ getOperatorId(): string
Returns string
getParent
▸ getParent(): Condition
Returns Condition
getQuery
▸ getQuery(): Query
Returns Query
isEmpty
▸ isEmpty(): boolean
Returns boolean
isGroup
▸ isGroup(): boolean
Returns boolean
isInJoin
▸ isInJoin(): boolean
Returns boolean
isParameterized
▸ isParameterized(): boolean
Returns boolean
isReadOnly
▸ isReadOnly(): boolean
Returns boolean
loadFromData
▸ loadFromData(model: DataModel,data: any
): void
Parameters:
- model: DataModel
- data:
any
Returns void
removeConditionAt
▸ removeConditionAt(index: number
): void
Parameters:
- index:
number
Returns void
saveToData
▸ saveToData(): any
Returns any
setInJoin
▸ setInJoin(value: boolean
): void
Parameters:
- value:
boolean
Returns void
setOperatorId
▸ setOperatorId(newOperatorId: string
,silent?: boolean
): void
Parameters:
- newOperatorId:
string
- silent:
boolean
, Optional
Returns void
setParameterized
▸ setParameterized(value: boolean
): void
Parameters:
- value:
boolean
Returns void
setParent
▸ setParent(parent: Condition): void
Parameters:
- parent: Condition
Returns void
setReadOnly
▸ setReadOnly(value: boolean
): void
Parameters:
- value:
boolean
Returns void