Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example revision of the JHtmlTabs using JHtmlElement #7967

Conversation

Mathewlenning
Copy link
Contributor

Example of how pull request #7948 can simplify our lives.

This is less than ideal. I'd actually prefer to just send the wrapper and let the developer add the tab panes using the JHtmlElement interface.

But even in its current form it is way better than the current JHtmlTabs implementation.

BTW does anyone know why we are adding the empty dt/dd set? or can I remove it?

if (!array_key_exists((string) $group, $loaded))
{
// Include MooTools framework
JHtml::_('behavior.framework', true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to include Mootools?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't change the JavaScript portion, just the rendering of the actual HTML

@dgrammatiko
Copy link
Contributor

@Mathewlenning I think you based this on the old html/tabs.php which is not the bootstrap version, thus the dd, dl elements and also the Mootools library dependency and the extra tabs.js script. The bootstrap version should be located inside the html/bootstrap.php file

@Mathewlenning
Copy link
Contributor Author

O.k. Thanks @dgt41

I'm glad to know that JHtmlTabs isn't actually being used! I'll make a different example after I've looked at the bootstrap file.

@Mathewlenning Mathewlenning deleted the JHtmlElement---tabs-revision-example branch September 28, 2015 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants