RemoteStorage.Widget

The widget controller that communicates with the view and listens to its remoteStorage instance.

While listening to the events emitted by its remoteStorage it sets corresponding states of the view.

  • connected -> connected
  • disconnected -> initial
  • connecting -> authing
  • authing -> authing
  • wire-busy -> busy
  • wire-done -> connected
  • error -> one of initial, offline, unauthorized, or error
Summary
RemoteStorage.WidgetThe widget controller that communicates with the view and listens to its remoteStorage instance.
Functions
displayDisplays the widget via the view.display method
setView(view)Sets the view and initializes event listeners to react on widget (widget.view) events
displayWidgetSame as display

Functions

display

display: function(options)

Displays the widget via the view.display method

Parameters

options

setView(view)

setView: function(view)

Sets the view and initializes event listeners to react on widget (widget.view) events

displayWidget

RemoteStorage.prototype.displayWidget = function(options)

Same as display

display: function(options)
Displays the widget via the view.display method
setView: function(view)
Sets the view and initializes event listeners to react on widget (widget.view) events
RemoteStorage.prototype.displayWidget = function(options)
Same as display
Close