1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-27 22:58:19 +00:00
TiddlyWiki5/plugins/tiddlywiki/menubar
Simon Huber e59f606566
Cancel popups when clicking within an editor (#4658)
* Add cancelPopups attribute to edit widget

* Add cancelPopups attribute to factory.js

* Cancel popups in editor/simple.js

* Cancel popups on focus in engines/framed.js

* Cancel popups on focus in CodeMirror engine

* Add cancelPopups="yes" to tag-picker

* Add cancelPopups="yes" to sidebar search

* Add cancelPopups="yes" to editor

* Add cancelPopups="yes" to fields EditTemplate

* Update body.tid

* Add cancelPopups="yes" to title EditTemplate

* Add cancelPopups="yes" to type EditTemplate

* Update EditTextWidget.tid

* Update EditWidget.tid

* Add cancelPopups="yes" to menubar plugin search

* Update tag-picker.tid

* Update tags.tid
2020-06-11 11:41:35 +01:00
..
items Cancel popups when clicking within an editor (#4658) 2020-06-11 11:41:35 +01:00
overrides First commit of new Menu Bar plugin 2020-02-28 14:33:15 +00:00
config-breakpoint.tid First commit of new Menu Bar plugin 2020-02-28 14:33:15 +00:00
config-DefaultColourMappings.multids First commit of new Menu Bar plugin 2020-02-28 14:33:15 +00:00
config-MenuItemsVisibility.multids Menubar: Add an optional dropdown for the sidebar tabs 2020-03-14 12:55:11 +00:00
config.tid Menubar tweaks 2020-02-28 16:09:26 +00:00
menu.tid Menubar: Fix positioning of toprightbar when narrow 2020-03-24 10:35:07 +00:00
plugin.info First commit of new Menu Bar plugin 2020-02-28 14:33:15 +00:00
readme.tid Menubar: Fix positioning of toprightbar when narrow 2020-03-24 10:35:07 +00:00
styles.tid Menubar: Add an optional dropdown for the sidebar tabs 2020-03-14 12:55:11 +00:00
tags-MenuBar.tid First commit of new Menu Bar plugin 2020-02-28 14:33:15 +00:00

title: $:/plugins/tiddlywiki/menubar/readme

!! Introduction

This plugin provides a menu bar with the following features:

* Menu items take the form of simple text links, dropdowns, or entirely custom content
* Menu items can be individually enabled via the control panel
* Responds to reduced screen width by abbreviating the menu items to a "hamburger" dropdown

!! Menu Item Tiddlers

Menu items are tagged <<tag $:/tags/MenuBar>>. The following fields are used by this plugin:

|!Field Name |!Purpose |
|title |Each menu item must have a unique title (not shown to the user) |
|description |Description for use in listings |
|tags |Must contain `$:/tags/MenuBar` |
|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 |
|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 |
|custom-menu-styles-narrow |Optional string of styles to be applied to menu item when the menubar is narrow |

Custom menu items should make sure that the clickable link or button is an immediate child, and not wrapped in another element.

Note that menu items can be pushed to the right of the menu bar setting the ''custom-menu-styles'' field to `float: right;`.