The player may be loaded to view (or edit) an existing response to an item or to ask a user to enter a new response.
There are four main modes or states in which the player can display an item or item session:
mode option is not required. If no mode is provided in the options object used when creating the player,
the mode will default to 'gather' when itemId is set and 'view' when sessionId is set.
By default the player takes up all available width of its parent container element. Specify the width of the player explicitly by passing the width option. The width parameter is a number, representing the width of the player in terms of pixels.
As the player is inside an iframe, scrolling is affected by the structure of the DOM it is taking place in. By default the 'body' element will get scrolled when scrolling is needed (eg. dragging a choice outside the visible area) but in certain cases you may want to specify the holder element you want to use for scrolling. For example if the player is inside a fixed position modal window, it will need to be set as the scroll container.
The scrollContainer option takes a DOM element reference or a jQuery object.