From 5bc57a82c8a0bf89694ffc0744d9a6d3095b02b9 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Fri, 11 Mar 2011 18:13:10 +0100 Subject: Menu: Add menubar-with-one-button-in-table example. --- tests/visual/menu/menubar.html | 75 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 67 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/visual/menu/menubar.html b/tests/visual/menu/menubar.html index 1519c73fc..930f23cc5 100644 --- a/tests/visual/menu/menubar.html +++ b/tests/visual/menu/menubar.html @@ -22,7 +22,9 @@ top: 10 }).appendTo(document.body).themeswitcher(); - $(".menubar").menubar({ + $("td:has(.menubar)").clone().appendTo("tbody tr:not(:first)"); + + $("#bar1, .menubar").menubar({ select: function(event, ui) { $("
").text("Selected: " + ui.item.text()).appendTo("#log"); } @@ -35,13 +37,11 @@ $("
").text("Selected: " + ui.item.text()).appendTo("#log"); } }); - - }); + table { + border-collapse: collapse; + } + th, td { + padding: 0.5em; + border: 1px solid black; + } + -