Topic: Can we change the width of the checkbox column in MDBDatatable?

Riva priority asked 1 year ago


When the selectable property is set to true, can we change the width of the checkbox column in MDBDatatable? or can we change the space between the checkbox column and the first data column? Thanks


Bartosz Cylwik staff answered 1 year ago


Hi! You can add a custom css to the div element of the checkbox like this:

.datatable-inner .form-check {
  width:100px;
}

Check my snippet: https://mdbootstrap.com/snippets/vue/b-cylwik/5143951#css-tab-view

Best Regards!



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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB5 3.2.0
  • Device: thinkpad
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No