Modules
- tw2.bootstrap.forms
- tw2.captcha
- tw2.core
- tw2.d3
- tw2.dynforms
- tw2.dyntext
- tw2.etc
- tw2.excanvas
- tw2.forms
- tw2.jit
- tw2.jqplugins.chosen
- tw2.jqplugins.cookies
- tw2.jqplugins.dynatree
- tw2.jqplugins.fg
- tw2.jqplugins.flot
- tw2.jqplugins.fullcalendar
- tw2.jqplugins.jqgrid
- tw2.jqplugins.jqplot
- tw2.jqplugins.portlets
- tw2.jqplugins.select2
- tw2.jqplugins.ui
- tw2.jquery
- tw2.lesscss
- tw2.polymaps
- tw2.protovis.conventional
- tw2.protovis.core
- tw2.protovis.custom
- tw2.protovis.hierarchies
- tw2.qrcode
- tw2.rrd
- tw2.slideymenu
- tw2.sqla
- tw2.tinymce
- tw2.tipster
- tw2.util.html5shim
- tw2.wysihtml5
tw2.slideymenu
TW2 fancy slidey menu that I made just for you!Slideymenu is best demonstrated by its use in narcissus. Definitely check it out.
You can also see it in the tw2 WidgetBrowser although it doesn't do it justice.
Get the source from http://github.com/toscawidgets/tw2.slideymenu
MenuWidget
Slidey menu that I made just for you!
This is quite alpha still. Please play with it and enhance it if you like.
options:
- width: -- the width of the menu.
- children
- Children specified for this widget will be passed to the child
- options
- Options.
- events
- (dict) (BETA) javascript callbacks for events
- items
- A recursive dictionary of menu entries
- label
- Label for the menu-show button
class DemoMenuWidget(MenuWidget):
items = [
{
'label': 'An item',
'href': "javascript:alert('clicked -- yes');",
}, {
'label': 'Another item',
'href': "javascript:alert('clicked -- yes');",
}, {
'label': 'An item with no href',
}
]
label = 'A slidey menu'
options = {
'width': '500px'
}
<div id='${w.attrs['id']}-button'>${w.label}</div>
<div id='${w.attrs['id']}-menu'>
% for entry in w.items:
<h3>
% if 'href' in entry:
<a href="${entry['href']}">${entry['label']}</a>
% else:
${entry['label']}
% endif
</h3>
% endfor
</div>
<script type="text/javascript">
setupSlideyMenu('${w.selector}', ${w._options | n});
</script>