Skip to content

Commit

Permalink
added setter and getter for group column header
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Oct 11, 2017
1 parent 9b29eb9 commit a8e3bec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions BBjGridExWidget.bbj
Expand Up @@ -587,6 +587,22 @@ rem --------------------api methods--------------------------------
#EnableFilter=enable
methodend

rem /**
rem * set the label for the group column if the grid is a tree-grid
rem * defaults to "Group"
rem * @param label$ - the label
rem */
method public void setGroupColumnLabel(BBjString label$)
#GroupColumnLabel$ = label$
methodend

rem /**
rem * get the label for the group column if the grid is a tree-grid
rem * @returns label$
rem */
method public BBjString getGroupColumnLabel()
return #GroupColumnLabel$
methodend

method public BBjGridExWidgetColumnState getColumnsState()

Expand Down
2 changes: 2 additions & 0 deletions Demo/TreeDemo.bbj
Expand Up @@ -16,6 +16,8 @@ wnd! = BBjAPI().openSysGui("X0").addWindow(10,10,1024,768,"BBj Grid Ex Demo")

grid! = new BBjGridExWidget(wnd!,100,0,0,1024,768)

grid!.setGroupColumnLabel("Customer")

wnd! .setCallback(BBjAPI.ON_CLOSE,"byebye")
wnd! .setCallback(BBjAPI.ON_RESIZE,"resize")

Expand Down

0 comments on commit a8e3bec

Please sign in to comment.