• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cool switches in the settings
#1
Hey,

Those switches on the settings page are so cool!

Can I use those on other pages as well? If so, can someone give some tips on how to make them work?

Thanks!
  Reply
#2
These swicthes are actually Boottstrap checkboxes http://www.bootstraptoggle.com/ & https://mdbootstrap.com/docs/jquery/forms/switch/

CSS based can be found here: https://www.w3schools.com/howto/howto_css_switch.asp
  Reply
#3
Thank you Anasaz,

Actually I know they are Bootstrap, and I know how to make them...I just dont know how to make them work (through the use of php).
Especially in US.
  Reply
#4
(04-18-2019, 01:26 PM)LBC Wrote: Thank you Anasaz,

Actually I know they are Bootstrap, and I know how to make them...I just dont know how to make them work (through the use of php).
Especially in US.

So those in particular if you notice that they all have classes like text or number on them. If you look at the bottom of admin.php you will see that I'm making an ajax call and using that to validate the info. So you could totally just create your own class names, copy the javascript at the bottom of admin.php and copy the parser file that is called by the ajax to do the exact same thing I'm doing with the settings table.
  Reply
#5
Okay, thanks. I will dive into that.

I may have to bother you with some more questions though Wink
  Reply
#6
No prob at all
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)