gwt - How to add a Button to a HeaderSpan in SmartGWT? -
gwt - How to add a Button to a HeaderSpan in SmartGWT? - i want add together button headerspan in smartgwt. @ start, title of button + (plus), when user clicks button, rows of table shown , title of button becomes - (minus). there around 25 columns in listgrid hence want behaviour. i have tried using headerspan.setattribute("button", new button("+")) method did not work. please help. any other approach hide/unhide columns much appreciated. i've watched link. per overview given in screen, provide hide/show of particular column particular headerspan. on right side of each column dropdown button given visible on mouse on & serves purpose. if want alter it's icon, can seek next code, headermenubuttonicon path of image: grid.setheadermenubuttonicon(headermenubuttonicon); hope helps you. gwt smartgwt