Titan-Framework icon indicating copy to clipboard operation
Titan-Framework copied to clipboard

Feature Request: Sub-options

Open DangitRick opened this issue 11 years ago • 2 comments

Not every option is relevant in every situation. Some may only be needed if another option is set to true.

I'm not sure how possible this would be, but it would add a good deal of flexibility if certain options can be set to "hidden" until their "parent" option is toggled, making them relevant.

This can be used for any number of things, but this is an example I see often enough:

Assume a theme has options to choose the widths of its columns, as well as the widths of the number of columns.

If a 1-column layout is chosen, only one width field is needed (the main one).

If a 2-column layout is chosen, two width fields are needed, along with an image-type radio option for choosing the layout (sidebar|content or content|sidebar).

If a 3-column layout is chosen, three width fields are needed, along with a different image-type radio option for the layout choice (sidebar|sidebar|content, sidebar|content|sidebar, and content|sidebar|sidebar).

DangitRick avatar Feb 23 '14 03:02 DangitRick

I like this, although I'm going to have this as a low priority for now. I think more options and other features would benefit the framework more.

bfintal avatar Feb 24 '14 09:02 bfintal

I understand that completely. :D

DangitRick avatar Feb 24 '14 20:02 DangitRick