leviwilson / mohawk

MIT License
14 stars 8 forks source link

TreeView: CheckBox support #4

Open leviwilson opened 11 years ago

leviwilson commented 11 years ago

TreeView controls have the ability to add checkboxes to them. It would be nice to have the ability to check / uncheck items based on their index or value.

class SomeScreen
  include Mohawk
  window title: /Whatever/

  tree_view(:users, id: 'usersTreeView')
end

s = SomeScreen.new
s.check_users 'First User', 'Second User' # => selects "First User" and "Second User"
s.uncheck_users 'Second User' # => unchecks the "Second User" item
leviwilson commented 11 years ago

@jacob-ewald not sure when I'm going to get to this, but just wanted to track it.