reflex-dom-core-0.6.0.0: 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.

manageHistory' Source #

Arguments

:: (MonadFix m, MonadJSM m, TriggerEvent t m, MonadHold t m, PerformEvent t m, MonadJSM (Performable m)) 
=> Event t ()

Don't do anything until this event has fired

-> Event t HistoryCommand 
-> m (Dynamic t HistoryItem) 

data HistoryStateUpdate Source #

Constructors

HistoryStateUpdate 

Fields

data HistoryItem Source #

Constructors

HistoryItem 

Fields