Material-table: How to add Select/ Dropdown in action

Created on 30 Apr 2019  路  6Comments  路  Source: mbrn/material-table

How can i add Dropdown in action button and after click on selection how to get data of whole row.

help wanted

Most helpful comment

image

render: rowData => (
            <>
                <select>
                  <option>Select a value</option>
                </select>
                <input type="checkbox"/>
            </>
          )

All 6 comments

Hi @mehuljariwala ,

Did you check custom rendering feature. You can render anything inside a cell?

https://material-table.com/#/docs/features/custom-column-rendering

Yeah i check but i like to have dropdown and checkbox both together!

@mbrn

You can return many elements in a fragment or div.

render: rowData =>

not working i tried to many thing

image

render: rowData => (
            <>
                <select>
                  <option>Select a value</option>
                </select>
                <input type="checkbox"/>
            </>
          )

Okay Let me check to implement on my project!

Thanks Buddy!

Was this page helpful?
0 / 5 - 0 ratings