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

Collapsible Options

Open DangitRick opened this issue 12 years ago • 6 comments

It's possible that some themes or plugins would have many options on a page. It would be useful if options panels could be specified as "collapsed" (or even just collapsible), with a dropdown list of options presented on the page rather than all of the options at once, allowing users to choose which option they want to see, with the other options hidden via CSS til needed.

There may be a more elegant approach, but if options can already be arranged by with Headings and notes describing the section, it only makes sense to allow them to be collapsible to better take advantage of screen real estate.

(And I think this should be completely optional as having a single group of like five options be collapsible would be silly... But a page with many? Yeah, it'd be nice.)

DangitRick avatar Mar 24 '14 00:03 DangitRick

You mean tabs? Hehe :)

bfintal avatar Mar 24 '14 00:03 bfintal

More like how the boxes on a WordPress add post page can be collapsed individually, to save space on the page itself.

DangitRick avatar Mar 24 '14 02:03 DangitRick

But isn't that the purpose of tabs in WP admins already? Just like the theme customizer has sections, meta boxes have.. boxes, and admin panels have tabs.

Reason I'm kinda against this is that as much as possible I want to use WP features as much as possible and not introduce new ones.

bfintal avatar Mar 24 '14 02:03 bfintal

It's possible that some themes or plugins would have many options on a page.

It seems to me that tabs are the perfect solution to this. I can't imagine how a dropdown list would be superior to tabs.

philipnewcomer avatar Mar 24 '14 10:03 philipnewcomer

For this, I was thinking it would be nice to just add some of my own CSS to move the tabs to a vertical orientation on the left side of the options area at non-mobile sizes. I can have a crack at this and share the results.

On Mon, Mar 24, 2014 at 3:12 AM, Philip Newcomer [email protected]:

It's possible that some themes or plugins would have many options on a page.

It seems to me that tabs are the perfect solution to this. I can't imagine how a dropdown list would be superior to tabs.

Reply to this email directly or view it on GitHubhttps://github.com/gambitph/Titan-Framework/issues/74#issuecomment-38427999 .

MickeyKay avatar Mar 24 '14 23:03 MickeyKay

Awesome @MickeyKay the function createAdminPage in class-admin-panel.php should be the place to look. There are a ton of hooks there which have been placed pre-emptively for skinning the UI

bfintal avatar Mar 25 '14 08:03 bfintal