• We've added extra Spam Protection. if you get problem with account registration / registration rejected. please contact us
Vivek

Tabbed Options

Vivek

Expert Member
Registered
Joined
Feb 27, 2018
Messages
226
Reaction score
436
Points
73
Age
19
GaZebo submitted a new resource:

Tabbed Options - Add tabs to your addon's options page

This guide will allow you to have a single option group for all your options, separating them into tabbed sections rather than forcing users to change option groups.

Examples:

View attachment 2125

View attachment 2126

Code Event Listener
Event:
templater_macro_pre_render
Event Hint: admin:option_macros:option_form_block
Execute Callback: Your\Namespace\XenForo2\EventListener\MacroRender :: preRender ...
Read more about this resource...
 

Admin

Executive Member
Staff member
Administrator
Joined
Dec 31, 2015
Messages
1,567
Reaction score
2,983
Points
113
Resources Updated : Tabbed Options with a new update entry:

HTML clean-up, universal template Add bookmark

If you use this in your add-on, you probably use it in multiple. Changing the template is a pain for each of them, so now the template has been made 100% universal, with the configuration switched to the PHP code.

I've also updated the guidelines for the listener to use a single Listener.php file instead of a new file per listener, it doesn't really matter but it's a standard I use so :p

The main core of the HTML has also had code duplication reduced thanks to @truonglv
Read the rest of this update entry...
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock