Styling buttons on Vue3 component

Styling buttons on Vue3 component

NatalyCevaNatalyCeva Posts: 6Questions: 2Answers: 0

Hi, is it possible to style buttons, or best to add classes to the buttons like the Search? I.e.: #DataTables_Table_0_filter.

Is there any attribute available that I missed in the documentation, or shall be done manually by querying selectors?

The reason is that I use Tailwind CSS and the layout is pretty much broken with the buttons, including the pagination buttons.

Thanks.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    I would suggest you use the DataTable.Buttons.defaults.dom property to set the tag names and class names you want for the buttons in general. The Bootstrap 5 example might be a good starting point.

    Allan

Sign In or Register to comment.