Datatable column text style


Topic: Datatable column text style

elmajed2007 asked a year 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 a year 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 commented a year 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.


Dawid Wajszczuk staff answered a year 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


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: 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
Tags