Controls the visible widget
initial | not connected |
authing | in auth flow |
connected | connected to remote storage, not syncing at the moment |
ciphered | connected, with cipher |
notciphered | connected, without cipher |
busy | connected, syncing at the moment |
offline | connected, but no network connectivity |
error | connected, but sync error happened |
unauthorized | connected, but request returned 401 |
RemoteStorage. | Controls the visible widget |
Functions | |
setState | Call the function that applies the state to the widget |
setUserAddress | Set user address of the input field |
setUserSecretKey | Set user secret key |
toggleBubble | Show the bubble when hidden and the other way around |
hideBubble | Hide the bubble |
showBubble | Show the bubble |
display | Draw the widget inside of the dom element with the id options.domID |
Events | |
connect | Emitted when the connect button is clicked |
secret-entered | Emitted when the cipher button is clicked |
secret-cancelled | Emitted when the nocipher button is clicked |
sync | Emitted when the sync button is clicked |
disconnect | Emitted when the disconnect button is clicked |
reset | Emitted after crash triggers disconnect |
display | Emitted when finished displaying the widget |
Call the function that applies the state to the widget
setState: function( state, args )
Set user address of the input field
setUserAddress: function( addr )
Set user secret key
setUserSecretKey: function( secretKey )
Show the bubble when hidden and the other way around
toggleBubble: function( event )
Hide the bubble
hideBubble: function()
Show the bubble
showBubble: function( event )
Draw the widget inside of the dom element with the id options.domID
display: function( options )