Skip to content

Commit

Permalink
Do not open columns toolpanel by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hyyan committed Dec 10, 2018
1 parent 0a397d6 commit 024b7eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions BBjGridExWidget.bbj
Expand Up @@ -340,15 +340,13 @@ class public BBjGridExWidget extends BBjWidget
rem */
method public BBjGridExWidget(BBjWindow wnd!, BBjNumber id!, BBjNumber x!, BBjNumber y!, BBjNumber w!, BBjNumber h!)
#super!.create(wnd!,id!,x!,y!,w!,h!)
#getSidebar().closeToolpanel(BBjGridExWidgetColumnsToolpanel.getId())
methodend
rem /**
rem * The constructor that creates the widget in the ChildWindow
rem * @param BBjChildWindow wnd!: the child window in which to create the BBjGridExWidget
rem */
method public BBjGridExWidget(BBjChildWindow wnd!)
#super!.create(wnd!)
#getSidebar().closeToolpanel(BBjGridExWidgetColumnsToolpanel.getId())
methodend
rem /**
rem * @Override
Expand Down Expand Up @@ -1776,7 +1774,6 @@ class public BBjGridExWidget extends BBjWidget
options!.addProperty("__locale",stbl("!LOCALE"))
options!.addProperty("__contextMenu",#ContextMenu!.toString())
#HTMLView!.executeScript("gw_setData("+data$+","+gson!.toJson(options!)+",'" + #LicenseKey$ + "')")
#getSidebar().closeToolpanel(BBjGridExWidgetColumnsToolpanel.getId())

methodend

Expand Down Expand Up @@ -2411,7 +2408,7 @@ class public BBjGridExWidgetDefaultSidebar extends BBjGridExWidgetSidebar

columns! = new BBjGridExWidgetColumnsToolpanel()
#getToolpanels().put(BBjGridExWidgetColumnsToolpanel.getId() , columns!)
#setDefaulToolpanel(BBjGridExWidgetColumnsToolpanel.getId())
rem #setDefaulToolpanel(BBjGridExWidgetColumnsToolpanel.getId())
methodend

classend
Expand Down
2 changes: 1 addition & 1 deletion Demo/Enterprise/SidebarDemo.bbj
Expand Up @@ -33,7 +33,7 @@ toolpanelToggle!.setCallback(BBjAPI.ON_BUTTON_PUSH,"toolpanelToggle")
refresh!.setCallback(BBjAPI.ON_BUTTON_PUSH,"refreshData")

sidebarState! = 1
toolpanelState! = 1
toolpanelState! = 0

gosub fillGrid

Expand Down

0 comments on commit 024b7eb

Please sign in to comment.