Oncheckall = (data) = {var CheckBox = document.getelementsbyname (data); for (let i=0;i<checkbox.length;i++) { if (checkbox[i].checked==true) {checkbox[i].checked=false; } else{Checkbox[i].checked=true}};} Const COLUMNWBS = [{title: ' WBS node name ', Dataindex: ' label '},{title: ' Permissions ', Dataindex: ' QX ', Render: (text, record, index) = = (<span > <button size= "Small" Onclick={this.oncheckall.bind (This,record.key)} style={{marginright: ' 5px '}}> select </Button> <span id= ' checkboxwrap ' > <input type= ' checkbox ' Name={record.key} style={{ma Rginleft: ' 5px '}}/> add <input type= "checkbox" Name={record.key} style={{marginleft: ' 5px '}}/> delete <inp UT type= "checkbox" Name={record.key} style={{marginleft: ' 5px '}}/> edit <input type= "checkbox" Name={record.key} Style={{marginleft: ' 5px '}}/> view </span> </span>)}]
JS react Select all and reverse