java - How to check all checkboxes usingheader checkbox in vaadin -
ia m new vvadin. created 1 project grid 2 columns want add 1 textfield column , 1 checkbox column , check checkboxes when click on header checkbox.
list<person> people = arrays.aslist( new person("nicolaus copernicus", 15), new person("galileo galilei", 15), new person("johannes kepler", 15)); textfield txt =new textfield(); checkbox chk=new checkbox(); // create grid bound list grid<person> grid = new grid<>(); grid.setitems(people); grid.addcolumn(person::getname).setcaption("name"); grid.addcolumn(person::getage).setcaption("year of birth"); grid.addcolumn(person-> new textfield()); layout.addcomponents(grid); setparent(layout); can suggest me.how add 2 columns
selection via check boxes works multi selection mode, see docs. on same page can read componentrenderer allows put component in column. note feature available since vaadin 8.1. released few days ago.
Comments
Post a Comment