Vivek

Tabbed Options

Vivek

Vivek

Expert Member
Registered
Joined
Feb 27, 2018
Messages
205
Reaction score
398
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

Admin

Executive Member
Staff member
Administrator
Joined
Dec 31, 2015
Messages
1,534
Reaction score
2,332
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...
 
anarchy9406

anarchy9406

New Member
Registered
Joined
Feb 24, 2019
Messages
2
Reaction score
0
Points
1
Age
23
Thank you for your division(sharing).
 
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