ba.sake.sharaf.htmx

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Extensions

Extensions

extension (req: Request)
def htmxCurrentURL: String

Attributes

Returns

the current URL of the browser, or empty string if not HTMX request

def htmxPrompt: String

Attributes

Returns

the user response to an hx-prompt, or empty string

def htmxTarget: Option[String]

Attributes

Returns

the id of the target element if it exists

def htmxTriggerId: Option[String]

Attributes

Returns

the id of the triggered element if it exists

def htmxTriggerName: Option[String]

Attributes

Returns

the name of the triggered element if it exists

def isHtmx: Boolean

Attributes

Returns

true if it is an HTMX request

def isHtmxBoosted: Boolean

Attributes

Returns

true if it is via an element using hx-boost

def isHtmxHistoryRestore: Boolean

Attributes

Returns

true if the request is for history restoration after a miss in the local history cache