uPort Web UI
A collection of ui elements for building uport-enabled web applications.
All of the following functions are exported at the top level by uport-web-ui, and create or modify an HTML modal which is injected into the DOM. Elements are identified by classes and IDs prefixed with
uport__, and styled by a custom stylesheet, bundled with the elements. TODO: Allow styles to be overwritten.
open(dataUri: String, cancel: Function, modalText: String)
|Open a modal and display the image provided as a data uri in the first argument.
|Display a success modal which will self-dismiss after
|Display a failure modal which includes a link to retry to failed action, using the provided
|Display a modal informing the user that a push notification has been sent, providing a button to retry or attempt a different delivery method bound to the
|Close any open uPort Modal by removing the elements from the DOM