AllenFang / react-bootstrap-table

A Bootstrap table built with React.js
https://allenfang.github.io/react-bootstrap-table/
MIT License
2.24k stars 782 forks source link

The TableHeaderColumn's attribute editable with select options is not working #2038

Open snsarma opened 5 years ago

snsarma commented 5 years ago

Hi

I have incorporated the boot strap table in my code and I need to make one of the columns as a drop down with an editable option .

The drop down doesn't appear for me when I include the above in the TableHeader. I am here with attaching my code where I referred your example : Please provide your inputs ,Your help is much appreciated.

<BootstrapTable data={ products } insertRow={ true } options={ options } > Field 1 Field 2 <TableHeaderColumn dataField='name'editable={ { type: 'select', options: { values: 'Y:N' } }}>Field3 Fields 1 and 2 also have table header tags but do not appear here , But yes the drop down option for field 3 isn't working in my code

Can you please help me resolve this ?