Show:

F2.UI.Views Class

Helper methods for creating and using Views

Defined in: sdk\src\ui.js:205

Methods

Name Description
change (
  • [input]
)

Change the current view for the app or add an event listener

off (
  • event
  • listener
)

Removes a view event listener

on (
  • event
  • listener
)

Adds a view event listener

Methods

change (
  • [input]
)

Defined in sdk\src\ui.js:228

Change the current view for the app or add an event listener

Parameters:

  • [input] String | Function optional

    If a string is passed in, the view will be changed for the app. If a function is passed in, a change event listener will be added.


off (
  • event
  • listener
)

Defined in sdk\src\ui.js:260

Removes a view event listener

Parameters:

  • event String

    The event name

  • listener Function

    The function that will be removed


on (
  • event
  • listener
)

Defined in sdk\src\ui.js:272

Adds a view event listener

Parameters:

  • event String

    The event name

  • listener Function

    The function to be fired when the event is emitted