Steve Piercy - Web Site Builder Proposed changes to nav for Twitter Bootstrap compatibility
Aug 02, 2013; 01:32
Steve Piercy - Web Site Builder
Proposed changes to nav for Twitter Bootstrap compatibility
Howdy,
I'm working on improving the nav object rendering. The goals are:
* backward compatible * flexible * use Twitter Bootstrap as the primary example of markup
So far I have these items on my road map.
* When calling oncreate for nav, the optional parameter -ulclass='string' will store the value in the nav object. When renderhtml is called, the class will be inserted into the <ul> tag. * When calling the insert method on a nav, the optional parameter -liclass='string' will store the value in the nav object item. When renderhtml is called, the class will be inserted into the <li> tag for the item. * When calling the insert method on a nav, the optional parameter -tbdropdown=boolean will store the value in the nav object item. Default is false. When renderhtml is called and if true for the item, the class 'dropdown' will be inserted into the <li> tag, 'dropdown-toggle' will be inserted into the class attribute for the <a> tag, ' data-toggle="dropdown"' will be inserted into the <a> tag, and ' <span class="caret"></span>' will be appended to the label. * When calling oncreate for nav, the optional parameter -currentclasstags=array('li','a') will insert the class as defined by -currentclass into either the <li>, <a>, or both.
Ultimately the output would look like this, for example: http://getbootstrap.com/components/#nav-dropdowns
Comments on the road map are welcome, especially if you have already implemented these features in your Knop nav.
After I tackle nav, I might look into form and grid. nav seems to be the lowest hanging fruit.
--steve
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@StevePiercy.com> <http://www.StevePiercy.com/>
-- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/
Aug 02
Rick Draper Re: Proposed changes to nav for Twitter Bootstrap compatibility
Aug 02, 2013; 08:37
Rick Draper
Re: Proposed changes to nav for Twitter Bootstrap compatibility
Aug 02
Steve Piercy - Web Site Builder Re: Proposed changes to nav for Twitter Bootstrap compatibility
Aug 02, 2013; 02:33
Steve Piercy - Web Site Builder
Re: Proposed changes to nav for Twitter Bootstrap compatibility
Aug 03
Johan Solve Re: Proposed changes to nav for Twitter Bootstrap compatibility
Aug 03, 2013; 15:56
Johan Solve
Re: Proposed changes to nav for Twitter Bootstrap compatibility
Aug 04
Steve Piercy - Web Site Builder Re: Proposed changes to nav for Twitter Bootstrap compatibility
Aug 04, 2013; 13:49
Steve Piercy - Web Site Builder
Re: Proposed changes to nav for Twitter Bootstrap compatibility
Aug 04
Steve Piercy - Web Site Builder Re: Proposed changes to nav for Twitter Bootstrap compatibility
Aug 04, 2013; 22:48
Steve Piercy - Web Site Builder
Re: Proposed changes to nav for Twitter Bootstrap compatibility
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!