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
Example revision of the JHtmlTabs using JHtmlElement #7967
Conversation
…s. I'll have to wait for TCI results before I can fix all the styling issues.
@Fedik Thanks for the input. These two methods will make this class even more user friendly.
if (!array_key_exists((string) $group, $loaded)) | ||
{ | ||
// Include MooTools framework | ||
JHtml::_('behavior.framework', true); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
@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 |
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. |
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?