Changing css for custom button

Changing css for custom button

mgreene57005mgreene57005 Posts: 2Questions: 1Answers: 0

I'm wanting to have a custom button which extends "selected", but have it's style match the theme of my web-app.

My test cases: https://jsfiddle.net/3sbwya/jwc0azb9/

How can I have my dt-button have the same css as my button whose class="submitBtn"

Answers

  • allanallan Posts: 63,353Questions: 1Answers: 10,444 Site admin

    If you are providing your own styling, you don't need to load the Buttons CSS file: https://jsfiddle.net/jwc0azb9/11/ .

    Allan

  • mgreene57005mgreene57005 Posts: 2Questions: 1Answers: 0

    How would this be handled if the Button extension is included in single DataTable link?

    https://jsfiddle.net/3sbwya/1a5n56fg/

  • allanallan Posts: 63,353Questions: 1Answers: 10,444 Site admin

    Three options off the top of my head:

    • Remove the Buttons CSS (drop the b-{version} part from the URL).
    • Download the file and modify it to suit your needs
    • Override the Buttons CSS with your local stylesheet.

    Allan

This discussion has been closed.