Set [Checkbox Tree].selected

It would be useful to:

  • set the .selected value of a Checkbox Tree like:
    tree.setSelection(123);
  • and have an onSelect option like:
    tree.onSelect(run_this_query);

Usecase
I use .selected to trigger a query. When a new value is added to the Checkbox Tree I want to select this new value.