new $k.HasAttributeCondition()
A condition that selects elements that have attributes of a specific type.
Extends
Methods
addValue(parameter, operator, defaultValue) : $k.AttributeValueCondition
Add a value condition. Note that an attribute conditon can only have one value conditon.
Name | Type | Description |
---|---|---|
parameter |
optional
Parameter name of the value |
|
operator |
string |
optional
Name of operator |
defaultValue |
optional
Default value if no parameter is specified |
- Since:
- 4.1.0
Throws:
Type | Description |
---|---|
$k.exception.QueryError | If the condition is not valid |
Returns:
Type | Description |
---|---|
$k.AttributeValueCondition |
valueCondition() : $k.AttributeValueCondition
Returns the attribute value condition, or undefined if there is none
- Since:
- 4.1.0
Returns:
Type | Description |
---|---|
$k.AttributeValueCondition |