Bug #80052
closedBasic ContextMenu / ClickMenu docs
0%
Description
t3api should have (at least a short) chapter on how the new context menu implementation works and how it can be extended / reduced.
basic outline could be something like "wrapClickMenuOnIcon()" -> click -> ajax call calculates item prodiver -> canHandle() (?) -> addItems() ... very roughly like that.
also mention how single items can be kicked from the list, maybe via pageTs for instance or by adding an own item provider that removes stuff again.
talk about item priorities and that an existing priority is overriden by an item provider with same prio.
tell how to register js into the click menu as requireJs modul.
tell about "context", how it is used and how it should be used.
Files
Updated by Xavier Perseguers over 7 years ago
- File disable-delete.png disable-delete.png added
Created a gist with a complete example on how to disable the "delete" entry for pages:
https://gist.github.com/xperseguers/2a11d915f6827adb74d8b988d97c595e
Updated by Tymoteusz Motylewski over 7 years ago
- Assignee set to Tymoteusz Motylewski
Updated by Tymoteusz Motylewski over 7 years ago
- Status changed from New to Resolved
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed