HTMX: compare request value¶
Plugin ID: eca_htmx_header
Available since: 3.1.3
Compares a value from the current HTMX request (e.g. target, trigger or current URL) against an expected value.
Fields¶
HTMX request value— config key:value-
The value from the current HTMX request that should be compared. The boolean values evaluate to "1" or "0".
When using the "Defined by token" option, make sure there is a token with this name: eca_htmx_header_valueType:
select· Required: no · Default:targetAllowed values:
target,trigger,trigger_name,current_url,is_request,boosted,history_restore,_eca_token,'' Expected value— config key:expected-
The value to compare the selected HTMX request value against. For boolean values use "1" or "0".
This field supports tokens.Type:
textfield· Required: no · Default: empty string Comparison operator— config key:operator-
The available comparison operators like equals or less than.
When using the "Defined by token" option, make sure there is a token with this name: eca_htmx_header_operatorType:
select· Required: no · Default:equalAllowed values:
equal,beginswith,endswith,contains,greaterthan,lessthan,atmost,atleast,_eca_token,'' Comparison type— config key:type-
The type of the comparison.
When using the "Defined by token" option, make sure there is a token with this name: eca_htmx_header_typeType:
select· Required: no · Default:valueAllowed values:
value,natural,numeric,lexical,count,_eca_token,'' Case sensitive comparison— config key:case-
Compare the values based on case sensitivity.
Type:
checkbox· Required: no · Default:false Negate the condition— config key:negate-
Negates the condition. Makes TRUE to FALSE and vice versa.
Type:
checkbox· Required: no · Default:false