NetTalk Central

Author Topic: new class for buttons  (Read 3768 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
new class for buttons
« on: July 18, 2018, 05:26:41 AM »
Hi Bruce,

For my project I need a check-button without the check icon.
I.e. only when a line in the browse is tagged the check sign needs to show.
I want the button to look in the same style as when the check icon is shown.

I asked around and a collegue came up with:

.my-icon-class { background-image: none !important; }

which works fine for me. I add it to the button conditionally, depending on the outcome of a test.
When the test says reveals checked= TRUE then the ui-icon-check class is used.

Maybe you could add a class like this to theme.css ??

Cheers,
Rene.

Btw: The advice you gave me during the webinar of july 13th works great. Thanks again!
Rene Simons
NT14.14

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: new class for buttons
« Reply #1 on: July 18, 2018, 05:46:56 PM »
Couldn't you place your css class in a custom.css file in your styles folder?

Include custom.css in webserver extension, styles, files.

Run gzipall.bat and you're done.

 :)

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Rene Simons

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Re: new class for buttons
« Reply #2 on: July 18, 2018, 09:24:53 PM »
Hi Don,

I have, but I think it would be nice to have this one issued as a standard class .

Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: new class for buttons
« Reply #3 on: July 23, 2018, 08:46:07 PM »
I've added "blank" as a valid icon name to the jQuery icons. So anywhere you see a prompt for jQuery Icon you can put
'blank'
In 10.27

cheers
Bruce

Rene Simons

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Re: new class for buttons
« Reply #4 on: July 25, 2018, 03:56:41 AM »
Thanks!
Rene Simons
NT14.14