YUI 3 DataTable - Context Menu
Demonstrates a basic context menu (right-click activated) setup on a DataTable instance.
Two separate context menus are demonstrated; one on the table body (TBODY) and another on the "header" (THEAD).
Status:
Notes:
This example uses a YUI Gallery plugin called
Y.Plugin.DataTableContextMenu
to easily setup a
Gallery ContextMenu-View
class on a Datatable.
The plugin can be configured to setup different contextmenus on either the THEAD, TBODY or TFOOT portions of a DataTable.
Events are fired with the "contextMenu" is displayed and hidden or when a context menu choice is clicked (as "selectedMenu").
When a "selectedMenuChange" event fires (see
Y.ContextMenuView ATTR selectedMenu
) it includes a reference to the original "menu" array.