diff --git a/plugins/tiddlywiki/menubar/menu.tid b/plugins/tiddlywiki/menubar/menu.tid index 8123af1bf..2d8f06aaa 100644 --- a/plugins/tiddlywiki/menubar/menu.tid +++ b/plugins/tiddlywiki/menubar/menu.tid @@ -55,7 +55,7 @@ tags: $:/tags/PageTemplate <$list filter="[addprefix[$:/config/plugins/menubar/MenuItems/Visibility/]get[text]] ~show +[match[show]]" variable="ignore"> <$set name="dropdown-state" value=<>> <$set name="dropdown-state" value={{{ [addsuffix] }}}> -<$reveal type="popup" state=<> class={{{ [get[dropdown]get[class]] }}} tag="div"> +<$reveal type="popup" state=<> position={{{ [get[dropdown-position]else[below]] }}} class={{{ [get[dropdown]get[class]] }}} tag="div">
<$transclude/>
diff --git a/plugins/tiddlywiki/menubar/readme.tid b/plugins/tiddlywiki/menubar/readme.tid index 8677a0cc5..4282654bd 100644 --- a/plugins/tiddlywiki/menubar/readme.tid +++ b/plugins/tiddlywiki/menubar/readme.tid @@ -19,6 +19,7 @@ Menu items are tagged <>. The following fields are used by |caption |The text that is displayed for the menu item. Avoid links, using `~` to suppress CamelCase links if required | |target |For simple link menu items specifies a tiddler title as the target of the link | |is-dropdown |Set to `yes` to indicate a dropdown menu item | +|dropdown-position |Optional position for the dropdown (can be ''left'', ''above'', ''aboveleft'', ''aboveright'', ''right'', ''belowleft'', ''belowright'' or ''below'') | |text |For dropdown menu items, specifies the body of the dropdown | |custom-menu-content |Optional wikitext to be displayed in place of the caption | |custom-menu-styles-wide |Optional string of styles to be applied to menu item when the menubar is wide |