customizing dom element styles

customizing dom element styles

hnhegdehnhegde Posts: 68Questions: 17Answers: 0

Hello Folks,
I am looking to apply custom styling to dom elements. I came across this manual for the editor. Wonder if there is a similar manual for the DataTables. Would appreciate if someone can kindly point me to the relevant pages.

I also found this thread, answered previously. However, I am not looking to change the datatables provided css. I would like to override with my own styles.

In particular, I am trying to embed a fontawesome icon inside the search box and to replace the pagination texts "Previous" and "Next" with "<" and ">" icons.

Thanks,
Harsha

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @hnhegde ,

    This blog post should help, it's talking about the same thing.

    Cheers,

    Colin

  • hnhegdehnhegde Posts: 68Questions: 17Answers: 0
    edited March 2019

    Thanks @colin ,
    I found it simpler to use 'language' options and customize the pagination icons.
    language: { "paginate": { "next": "<i class='fas fa-angle-right'></i>", "previous": "<i class='fas fa-angle-left'></i>" } }

This discussion has been closed.