[RSS Feed/News] <xf:toggle /> display as on/off switch without submit=true

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hello there,

In a template, if we use <xf:toggle submit="true" />, it gives us a nice little switch on the UI like the following:
1663861942266.png

Without that attribute or submit="", it turns into a checkbox which is absolutely fair.
1663862022447.png

However, I was wondering if XF allows us to have a the switch UI without having to submit anything to the server. If I use submit="true" but without providing a URL to post, it does the job of turning off and on (along with...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom