Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Semantic-ui-react - Table Cell Colspan

How to merge few cells in semantic-ui-react as we normally do using colspan in html table?

https://react.semantic-ui.com/collections/table#types-pagination

I tried different options - nothing seems to help!!

enter image description here

like image 336
KitKarson Avatar asked May 31 '18 19:05

KitKarson


1 Answers

The value of the colSpan property needs to be either in quotation marks ("3") or in curly braces ({3}). Otherwise it will be an incorrect React JSX syntax.

<Table.Cell colSpan="3">

or

<Table.Cell colSpan={3}>

like image 145
euvs Avatar answered Sep 20 '22 18:09

euvs