Difference between revisions of "Board18Market6"
(added release note) |
(complete rewrite) |
||
Line 1: | Line 1: | ||
{{ | {{ReleaseNoticeX|1.3|Design_Document_board18Market_Page}} | ||
The board18Market6.js file contains all the functions that | |||
respond to various onclick events on the stock chart in the | respond to various onclick events on the stock chart in the | ||
Market page and on the main and tray menues. | Market page and on the main and tray menues. But right click | ||
events that cause a context menu to be displayed are handled | events that cause a context menu to be displayed are handled | ||
by functions in the board18Market5.js file. | by functions in the board18Market5.js file. | ||
== Function makeTrayItems() == | |||
==Function makeTrayItems()== | |||
The makeTrayItems function will use the | The makeTrayItems function will use the | ||
BD18.trays array to construct the items | BD18.trays array to construct the items | ||
to be displayed in the tray menu. | to be displayed in the tray menu. | ||
==Function registerTrayMenu()== | == Function registerTrayMenu() == | ||
The registerTrayMenu function creates the | The registerTrayMenu function creates the | ||
tray menu on the | tray menu on the board18Map page. It uses | ||
the jquery context menu plugin and the | the jquery context menu plugin and the | ||
makeTrayItems function. | makeTrayItems function. | ||
==Function boxPos(event)== | == Function leftMenuEvent(key) == | ||
This function handles the selection of the leftMenu(Tray) | |||
and displays the proper BD18.tray. | |||
== Function boxPos(event) == | |||
This function calculates the board coordinates of a stock price | This function calculates the board coordinates of a stock price | ||
box given the raw coordinates of a mouse click event. | box given the raw coordinates of a mouse click event. | ||
==Function traySelect(event)== | == Function traySelect(event) == | ||
This function responds to onclick events in the trays canvas. | This function responds to onclick events in the trays canvas. | ||
It selects a item from those currently displayed and highlites | It selects a item from those currently displayed and highlites | ||
the selected item. | the selected item. | ||
Revision as of 15:05, 9 December 2015
This page has been updated to comply with Release 1.3.x of BOARD18. | Go Back |
The board18Market6.js file contains all the functions that respond to various onclick events on the stock chart in the Market page and on the main and tray menues. But right click events that cause a context menu to be displayed are handled by functions in the board18Market5.js file.
Function makeTrayItems()
The makeTrayItems function will use the BD18.trays array to construct the items to be displayed in the tray menu.
Function registerTrayMenu()
The registerTrayMenu function creates the tray menu on the board18Map page. It uses the jquery context menu plugin and the makeTrayItems function.
Function leftMenuEvent(key)
This function handles the selection of the leftMenu(Tray) and displays the proper BD18.tray.
Function boxPos(event)
This function calculates the board coordinates of a stock price box given the raw coordinates of a mouse click event.
Function traySelect(event)
This function responds to onclick events in the trays canvas. It selects a item from those currently displayed and highlites the selected item.