diff --git a/BBjGridExWidget.bbj b/BBjGridExWidget.bbj index 80e3092a..3a8149bf 100644 --- a/BBjGridExWidget.bbj +++ b/BBjGridExWidget.bbj @@ -233,7 +233,7 @@ class public BBjGridExWidget extends BBjWidget if (f_init!) then dummy$=stbl("!OPTIONS","JAVAFX_HTMLVIEW=true") - html$="
" + html$="
" htmlview! = #getCanvas().addHtmlView(101,0,0,#getCanvas().getWidth(),#getCanvas().getHeight(),"") htmlview!.setCallback(BBjAPI.ON_PAGE_LOADED,#this!,"onLoad") htmlview!.setCallback(BBjAPI.ON_NATIVE_JAVASCRIPT,#this!,"onNativeEvent") @@ -1286,7 +1286,7 @@ rem --------------------api methods-------------------------------- methodend method public void setTheme(BBjString theme$) - if pos(theme$="dark#fresh#blue#bootstrap#material")>0 then + if pos(theme$="dark#fresh#blue#bootstrap#material#balham#balham-dark")>0 then if info(3,6)="5" then s$="$doc.getElementById('grid').className='ag-theme-"+theme$+"';" else @@ -1299,6 +1299,8 @@ rem --------------------api methods-------------------------------- method public BBjVector getThemes() v! = new BBjVector() + v!.addItem("balham") + v!.addItem("balham-dark") v!.addItem("dark") v!.addItem("fresh") v!.addItem("blue") diff --git a/Demo/Demo.bbj b/Demo/Demo.bbj index 3a9399b4..d37e41fe 100644 --- a/Demo/Demo.bbj +++ b/Demo/Demo.bbj @@ -48,7 +48,7 @@ rem lb_db!.setEnabled(0) lb_theme!.insertItems(0,grid!.getThemes()) -lb_theme!.selectIndex(1) +lb_theme!.selectIndex(0) process_events @@ -154,5 +154,6 @@ return setTheme: ev! = BBjAPI().getLastEvent() theme$ = ev!.getSelectedItem() + print 'SHOW' , theme$ grid!.setTheme(theme$) return \ No newline at end of file