reflex-dom-core-0.4: Functional Reactive Web Apps with Reflex

Safe HaskellNone
LanguageHaskell98

Reflex.Dom.Location

Synopsis

Documentation

browserHistoryWith Source #

Arguments

:: (MonadJSM m, TriggerEvent t m, MonadHold t m) 
=> (forall jsm. MonadJSM jsm => Location -> jsm a)

A function to encode the window location in a more useful form (e.g. getLocationAfterHost).

-> m (Dynamic t a) 

Builds a Dynamic carrying the current window location.

getLocationAfterHost :: MonadJSM m => m Text Source #

Returns the URI-decoded location after the host and port; i.e. returns the path, query, and fragment of the location.

getLocationFragment :: MonadJSM m => m Text Source #

Returns the URI-decoded fragment/hash of the current window location.

getLocationHost :: MonadJSM m => m Text Source #

Returns the host of the current window location

getLocationPath :: MonadJSM m => m Text Source #

Returns the URI-decoded path of the current window location.

getLocationProtocol :: MonadJSM m => m Text Source #

Returns the protocol/scheme (e.g. http: or https:) of the current window location

getLocationUrl :: MonadJSM m => m Text Source #

Returns the full URI-decoded URL of the current window location.

data HistoryStateUpdate Source #

Constructors

HistoryStateUpdate 

Fields

data HistoryItem Source #

Constructors

HistoryItem 

Fields