Caplin Trader 4.5.2

Interface: module:caplin/watchlist/Watchlist

module:caplin/watchlist/Watchlist

A watchlist is a named collection of records that a user wishes to view, typically in a grid.

To add or remove records from a watchlist, use its module:caplin/watchlist/WatchlistContentsManager which is accessible via module:caplin/watchlist/Watchlist#getContentsManager.

Methods

getContentsManager() → {module:caplin/watchlist/WatchlistContentsManager}

Returns a module:caplin/watchlist/WatchlistContentsManager for this watchlist. This can then be used to modify the contents of the watchlist.
Implementations:
Returns:
may be used to modify the watchlist. contents.
Type
module:caplin/watchlist/WatchlistContentsManager

getId() → {string}

A unique identifier for this watchlist.
Implementations:
See:
Returns:
This watchlist's id.
Type
string

getName() → {string}

The user-friendly name chosen for this watchlist. This will typically have been chosen by the user when the watchlist was created.
Implementations:
Returns:
This watchlist's user-friendly name.
Type
string

getSubject() → {string}

The subject of this watchlist's container record. This can be used to create a subscription to the watchlist's contents.
Implementations:
Returns:
This watchlist's subject.
Type
string

setName(name, erroropt, successopt)

Sets the user-friendly name for this watchlist.
Parameters:
Name Type Attributes Description
name string The new user-friendly name for this watchlist.
error function <optional>
function to be called if the operation fails.
success function <optional>
function to be called when the operation completes successfully.
Implementations: