Skip to content

Commit

Permalink
enhanced the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Jul 3, 2018
1 parent 166e12d commit a8e67bd
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions Demo/ColumnGroupingDemo.bbj
Expand Up @@ -45,20 +45,31 @@ fillGrid:
grid!.setEnableFilter(1)
grid!.setEnableFloatingFilter(1)

group! = new BBjVector()
group!.addItem("ARTIST")
group!.addItem("TITLE")
group!.addItem("LABEL")
group!.addItem("PLAYINGTIME")

groupStyle! = new JsonObject()
groupStyle! = new JsonObject()
groupStyle!.addProperty("background","#03a9f4")
groupStyle!.addProperty("color","white")
groupStyle!.addProperty("font-weight","bolder")
groupStyle!.addProperty("border-bottom","3px solid black")

grid!.addStyle(".my-group-class" , groupStyle!)
grid!.addColumnGroup("myGroupID" , "CD Information",group! , 1 , "my-group-class")


group! = new BBjVector()
group!.addItem("CDNUMBER")
grid!.addColumnGroup("group1" , "Inventory",group! , 0 , "my-group-class")

group! = new BBjVector()
group!.addItem("ARTIST")
group!.addItem("TITLE")
grid!.addColumnGroup("group2" , "CD Information",group! , 0 , "my-group-class")

group! = new BBjVector()
group!.addItem("LABEL")
group!.addItem("PLAYINGTIME")
grid!.addColumnGroup("group3" , "Misc",group! , 0 , "my-group-class")



grid!.setData(rs!)
return

Expand Down

0 comments on commit a8e67bd

Please sign in to comment.