Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Want to hide the div element including header in SPFX react webpart

$
0
0

I am getting the list values and displaying in react SPFX webpart like as below.

<divclassName={styles.rowStyle}>
<divclassName={styles.CellStyle}>How to Request Access </div>
<divclassName={styles.CellStyle}>More Information</div>
<divclassName={styles.CellStyle}>How to get Training</div>
</div>
<divclassName={styles.rowStyle}>
<divclassName={styles.CellStyle2}>{item.CntctsReqAccess}></div>
<divclassName={styles.CellStyle2}>{item.CntctsMoreInfo}></div>
<divclassName={styles.CellStyle2}>{item.CntctsGetTraining}></div>
</div>

In the above if any of the column doesnt have any data or null i want to hide the columns including column header how can we achieve this?


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>