Skip to content

Commit

Permalink
feat: add predefine menu item BBjGridContextMenuItem.SEPARATOR()
Browse files Browse the repository at this point in the history
  • Loading branch information
hyyan committed Jul 19, 2019
1 parent 2614d51 commit af3fc1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BBjGridExWidgetContextMenu.bbj
Expand Up @@ -123,6 +123,12 @@ class public BBjGridContextMenuItem implements BBjGridContextMenuItemInteface
rem */
field protected BBjString Id! = null()
rem /**
rem * @return shortcode to separator menu item
rem */
method public static BBjString SEPARATOR()
methodret "separator"
methodend
rem /**
rem * @return shortcode to autoSizeAll menu item
rem */
method public static BBjString AUTO_SIZE_ALL()
Expand Down
3 changes: 3 additions & 0 deletions Demo/Enterprise/ContextMenuDemo.bbj
Expand Up @@ -45,6 +45,7 @@ main:
menu!.addItem(BBjGridContextMenuItem.AUTO_SIZE_ALL())
menu!.addItem(BBjGridContextMenuItem.RESET_COLUMNS())
menu!.addItem(BBjGridContextMenuItem.EXPORT())
menu!.addItem(BBjGridContextMenuItem.SEPARATOR())

rem /**
rem * Create custom menu items
Expand All @@ -64,6 +65,8 @@ main:
namepedia!.setTooltip("Search First Name in Namepedia")
menu!.addItem(namepedia!)

menu!.addItem(BBjGridContextMenuItem.SEPARATOR())

copy! = new BBjGridContextMenuItem(6002,"Copy Functions")
submenu! = new BBjGridContextMenu()
submenu!.addItem(BBjGridContextMenuItem.COPY())
Expand Down

0 comments on commit af3fc1d

Please sign in to comment.