Topic: Datatable column text style
elmajed2007 free asked 3 years ago
Expected behavior: i want to change font style for specific column -- like make it smaller and muted
I'm using javascript to populate datatable , I added sample javascript code in a snippet https://mdbootstrap.com/snippets/standard/elmajed2007/3079658#js-tab-view
Also i want to ask about how hide column from table view and get cell value by row button click?
Thanks in adavance
Dawid Wajszczuk staff answered 3 years ago
Hi,
Thanks for this explanation. Now I can see what you would like to accomplish. But I'm sorry to tell you that currently we don't have support for this solution. I will add this to our ideas list and maybe in the future we will add this functionality.
Keep coding,
Dawid
Dawid Wajszczuk staff answered 3 years ago
Hi,
As for editing specific column use format
option. Here is the snippet with example https://mdbootstrap.com/snippets/standard/d-wajszczuk/3080441#js-tab-view.
I don't fully understand what do you mean by this
Also i want to ask about how hide column from table view and get cell value by row button click?
Could you explain it with more details?
Keep coding,
Dawid
elmajed2007 free commented 3 years ago
I mean how to make specific column hidden (this part1), then how i can use this column cells to get value.Ex: column Id is hidden then using delete button to get closest td .text()
I made a sample snippet although it's not rendered data as it in my side but just for clearing. https://mdbootstrap.com/snippets/standard/elmajed2007/3083145#js-tab-view What is need : 1- hide ID column 2- get value of Id based on row details button click
Thank you.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 3.5.1
- Device: computer
- Browser: crome
- OS: windows 10
- Provided sample code: No
- Provided link: Yes