dingo-core-0.1.0: Dingo is a Rich Internet Application platform based on the Warp web server.




type CallbackM = CallbackT (SessionT WrapCallback IO)Source

addWidget :: (Widget w s, Widget w' s') => w' -> (WidgetId -> CallbackM (w, s)) -> CallbackM wSource

Add a new widget using a given parent. The widget is constructed using the given function which receives the new widget's ID as a parameter.

sendJavascript :: JavascriptUrl Text -> CallbackM ()Source

Send raw Javascript to the browser.

setWidgetContents :: Widget w s => w -> Html -> CallbackM ()Source

Set the widget contents to the given HTML element.