-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Navbar Review #7359
Comments
At first glance i notice classes like |
also i think |
create event does not create the navbar its triggered by the navbar is created. saying it creates a navbar on the selector makes it sound like you could do |
Things to look into:
Note: We should test icon related things with navbars inside and outside toolbars, because the CSS to make buttons inside toolbars default to mini and inline might affect the navbar buttons. |
Ummm, we're getting rid of buttonMarkup(), right? |
@gabrielschulhof - Ah, good point! I missed that when I copied this over from the old ticket. |
since we talked about removing the idea of "persists" altogether I assume functionality like this: @arschmitz where you thinking an explicit |
I was thinking |
As far as persists goes. this all originally centered around the idea of persistent tool bars this used to be an extension to the fixedToolbar widget. However this was deprecated in 1.5. This behavior is however still available by means of a true persistent toolbar which is outside the page. The idea of persistence of things that are in the page I don't think makes sense. |
I added a bullet "add instructions to the upgrade guide" to the checklist. There is a 1.5 update branch in the jquerymobile.com repo which contains the 1.5 upgrade guide. |
new PR created to track progress on the new branch. |
I realized I have created a dependency on |
tracking #7909 here to make sure that a navbar without links either works or throws an proper error |
I'm using navbar widget under JQM 1.4.5, but I get the error |
@caoliuxue the nav bar widget does not have a refresh method please see http://api.jquerymobile.com/navbar/ this issue is an in-progress re-write for 1.5.0 |
Navbar Review
Description
A jQuery Mobile Widget that creates a row (bar) of buttons. The buttons are created from an unordered list of links wrapped in a container element with
data-role=”navbar”
. The buttons can contain text, icons, or text + icon.Functional Specification
Navbar should extend the full available width of the viewport with a maximum number of buttons which, once reached, will:
n
rows of 2 columns, but inn
rows of the maxbutton columns and then evenly distribute the remaindermorebutton
option is set to true - trigger display of a "viewmore" button to indicate there are more buttons available. When "viewmore" is selected the remaining buttons will become visible in a popup. Thismorebutton
functionality will be an extension to the navbar widgetResponsive Design Considerations
maxbuttons
onthrottledresize
Performance Considerations
Accessibility Considerations
Ensure that the navbar receives the
role="navigation"
attribute - specNavigation Considerations
Options
morebutton extension
Events
create triggered when a navbar is created
Methods
destroy removes navbar enhancements from the element
refresh refreshes the navbar
Markup & Style
Initial Markup
Enhanced Markup
CSS
Checklist
document
andwindow
directly - usesthis.document
andthis.window
The text was updated successfully, but these errors were encountered: