This namespace contains definitions for generic actions. An action is an object
that encapsulates the operations executed by a control
when is interacted or by a viewer when it is interacted.
Special cases of actions can include others that execute operations when a
workspace is interacted.
By separating the user interface (controls) from the operations executed (actions) the API offers a more modular way of integrate all the pieces in a web app. For example, an action could respond to events triggered by different controls as far as the events are the same, avoiding the need to write the same code in when different controls are used.
- Source:
- bu/actions/action.jsdoc
Classes
- Action
- Attribution
- DebugGrid
- DebugMode
- Language
- Login
- Logout
- ProgressLabel
- SyncAction
- TimeSelect
- WorkspaceAction
Type Definitions
-
ActionOptions
-
Options for
bu.action.Action.Type:
- Object
- Source:
- bu/typedefs.js
Properties:
Name Type Description controlbu.control.Control | undefined The control this action is attached to.
viewerbu.Viewer | undefined The viewer this action is tied to.
-
AttributionOptions
-
Options for
bu.action.Attribution.Type:
- Object
- Source:
- bu/typedefs.js
Properties:
Name Type Description controlbu.control.Control | undefined The control this action is attached to.
viewerbu.Viewer | undefined The viewer this action is tied to.
autoCollapsibleMinWidthboolean | undefined The min width under which the control will be shown as collapsible.
-
LoginOptions
-
Options for
bu.action.Login.Type:
- Object
- Source:
- bu/typedefs.js
Properties:
Name Type Description controlbu.control.Control | undefined The control this action is attached to.
viewerbu.Viewer | undefined The viewer this action is tied to.
loginSuccessFnfunction | undefined The function that will be executed if login is successful. Any function receiving one parameter: a
bu.UserDataobject containing user data. -
SyncActionOptions
-
Options for
bu.action.WorkspaceAction.Type:
- Object
- Source:
- bu/typedefs.js
Properties:
Name Type Description controlbu.control.Control | undefined The control this action is attached to.
viewerbu.Viewer | undefined The viewer this action is tied to.
workspacebu.Workspace | undefined The workspace this action is tied to.
typebu.SyncType | undefined Type of syncing.
syncedViewIndexnumber | undefined The view index of the synced viewer.
-
WorkspaceActionOptions
-
Options for
bu.action.WorkspaceActionType:
- Object
- Source:
- bu/typedefs.js
Properties:
Name Type Description controlbu.control.Control | undefined The control this action is attached to.
viewerbu.Viewer | undefined The viewer this action is tied to.
workspacebu.Workspace | undefined The workspace this action is tied to.
Javascript API 7.x