Can you style the responsive plus sign?

Can you style the responsive plus sign?

chuffordchufford Posts: 2Questions: 1Answers: 0

I would prefer to have a reveal triangle to show the child row rather than the green circular plus sign. Can you point me in the right direction? Thanks. Chris

This question has accepted answers - jump to:

Answers

  • GMGrayingGMGraying Posts: 12Questions: 6Answers: 1
    Answer ✓

    I used my own images. You can use photoshop/illustrator/or buy your own. I put the following in my style sheet and pointed to my images. See below

    ...
    td.details-control {
    background: url('../../img/plus.png') no-repeat center center;
    cursor: pointer;
    }
    tr.shown td.details-control {
    background: url('../../img/minus.png') no-repeat center center;
    cursor: pointer;
    }
    ...

  • allanallan Posts: 63,873Questions: 1Answers: 10,528 Site admin
    Answer ✓

    Another option is to use the content property of the ::before element that Responsive's own stylesheet uses. It uses + and -, so if you change that for ▸ and ▾, that should do the job.

    Use the inspector in your browser to get the exact CSS selector to use (since it will be different for each of the styling libraries, and I don't know which one you are using). Or change the values in the DataTables source stylesheet.

    Allan

  • chuffordchufford Posts: 2Questions: 1Answers: 0

    Thank you. Those answers are what I needed.

This discussion has been closed.