-
Notifications
You must be signed in to change notification settings - Fork 22
Custom main menu subitems
Tomas Machalek edited this page Sep 21, 2017
·
14 revisions
KonText recognizes the following sub-menu items:
-
core items are controlled by KonText core application and cannot be changed via a plug-in
- items with an action and args - where action specifies KonText's controller action (e.g. first_form, view) and args are respective URL arguments. These items are transformed into common HTML links (i.e. user clicks an item and browser navigates him to a new page within KonText)
- items with a message and args - where message specifies a Flux message to be dispatched once the item is clicked and args are its respective arguments. These custom items are always appended behind core items, i.e. it is not possible to add a custom item to a specified position within a menu item box (e.g. for 'Corpora', something like 'Available corpora', 'My custom item', 'My subcorpora', etc. cannot be done).
-
custom (plug-in) items are configured by an administrator of a concrete KonText installation
- static items are just URLs with localized text label
- dynamic items are server defined "anchors" with a respective client-side code which binds custom labels and event handlers