Skip to content

Commit

Permalink
Resolve issue #8 - add 'deselectAll'
Browse files Browse the repository at this point in the history
  • Loading branch information
hyyan committed Jan 17, 2018
1 parent db21a9f commit 345b25e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions BBjGridExWidget.bbj
Expand Up @@ -172,6 +172,15 @@ class public BBjGridExWidget extends BBjWidget
methodend


rem /**
rem * deselect all rows
rem */
method public void deselectAll()

script$="bbj_grid_widget_set_deselect_all();"
#executeScript(script$)
methodend

rem /**
rem * Event Handler for Native JavaScript Event (from the Grid)
rem * Determines and dispatches the actual event
Expand Down
4 changes: 4 additions & 0 deletions js/BBjGridExWidget.js
Expand Up @@ -147,6 +147,10 @@ function bbj_grid_widget_set_select_all(){
$doc.bbj_grid_widget.api.selectAll()
}

function bbj_grid_widget_set_deselect_all(){
$doc.bbj_grid_widget.api.deselectAll()
}

function bbj_grid_widget_get_state() {

var state = $doc.bbj_grid_widget.columnApi.getColumnState();
Expand Down

0 comments on commit 345b25e

Please sign in to comment.