Developer Docs - Mobile Docs - Attribute Reference

Every Hx.* attribute in one table, plus the reserved values you can put in them.

Attributes

Hx.* only works on visual elements. Setting a verb or Hx.Id on something that is not one, such as a context menu action or a toolbar item, is ignored.

Hx.Headers

The one attribute without a home elsewhere. Extra request headers, written as a query string, not JSON.

Inherits: yes. Read them from the Headers merge field. Your headers are sent alongside the standard Helix headers, not in place of them. If you name one of the app's own headers, it is sent twice, and the server sees both values joined by a comma. X-Helix-Client=Web arrives as RockMobile,Web. Setting X-Helix-CSRF-Protection to anything, even true, makes an endpoint with cross-site forgery protection return 401.

Use your own header names. Do not set X-Helix-Client, X-Helix-Shell-Version, X-Helix-CSRF-Protection, or X-Helix-Prompt in Hx.Headers.

Reserved values

Hx.Target

Hx.Swap

The items-* strategies take a JSON array response rather than XAML. See Data Lists and Paging for those, and Swaps and Animations for the rest.

Hx.Swap modifiers

Order-independent, and applied after the strategy token. An unrecognized modifier is an error, unlike a Hx.Trigger modifier.

Only inner and outer animate the exit. A duration declared without animate: is inert rather than an error. Platform reduce-motion collapses every animation to an instant swap. See Swaps and Animations.

Hx.Trigger events

Hx.Trigger modifiers

Times accept 400ms, 2s, or bare milliseconds. from:, target:, consume, and queue are parsed and ignored.

Hx.Params

none is the only value. Anything else is ignored.

Hx.Disinherit

Space- or comma-separated attribute names with or without the Hx. prefix, or * for all.

Case sensitivity

This trips people up because it is not uniform.

Request headers

Plus anything from Hx.Headers, and standard Rock authentication.

Response headers

HX-Location, HX-Push-Url, HX-Replace-Url, and HX-Trigger do nothing. See Endpoint Responses.

Mobile-only vocabulary

If you are porting from web Helix, this is the delta.