Comments (3)
Let's add the above event so that definitions are the same between Buttons and MenuItems
from support.
Hi guys,
I see this is released and closed already. What about the last request ? Could you please consider to add in MenuItem also:
item.trigger('action', itemEvent);
![Screenshot 2024-02-03 at 19 55 43](https://private-user-images.githubusercontent.com/3592131/302052532-77c3801a-604f-4b97-949b-ee8af8821309.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5MjU3MTQsIm5iZiI6MTcxODkyNTQxNCwicGF0aCI6Ii8zNTkyMTMxLzMwMjA1MjUzMi03N2MzODAxYS02MDRmLTRiOTctOTQ5Yi1lZThhZjg4MjEzMDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjBUMjMxNjU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjQwNDRlYmEwOGU3NmZmMmNkN2RhZmM1MmM2NGMzZWU0ZjNiOThmMjU5Y2JkOWVhMmUzYjIyOThjZjE5MDM0ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.MeNjCkG1vsE7frJycQcE3ojBb92xTaq-uGHRf1Xu284)
So we can have one handler definition in namedItems instead of 2, so it can be re-used for both buttons and menu items:
namedItems: {
removeRow: {
text: 'Remove row',
onItem: 'ctrl.onRemoveRowClick',
onAction: 'ctrl.onRemoveRowClick',
},
},
=>
namedItems: {
removeRow: {
text: 'Remove row',
onAction: 'ctrl.onRemoveRowClick',
},
},
from support.
Hi guys, please don't forget about this. Thanks.
from support.
Related Issues (20)
- Event changes background color while resizing + dragging
- viewPreset Timeline Starts Weeks Ahead of Project Start Date
- Buttons in grid WidgetColumn cells cannot be invoked using keyboard
- [Ext Gantt] Inherited parent dependencies are not collected into critical paths HOT 1
- Inherited parent dependencies are not collected into critical paths
- Add possibility to postpone conflicts resolution HOT 1
- The `snapRelativeToEventStartDate` config works incorrect when resize an event
- Bug when swicth viewPresets with `zoomKeepsOriginalTimespan` enalbed
- Zooming in/out freezes tab when `zoomKeepsOriginalTimespan` enabled
- Timeline's start/end dates reset when added 1st task to project
- [LWC] Add column allowing to link entities
- Failed to load IMG, URL: https://bryntum.com/products/schedulerpro/examples/_shared/images/users/celia%20(copy).jpg
- Button menu onFoo listeners don't work when called from overflow menu
- Allow number editor to allow entering decimals starting with period
- Content Cut Off and Blank Second Page when print with big datasets
- [VUE 3] Events disappear after ResourceStore.load() in 5.6.12 HOT 1
- [Ext Gantt] Critical paths are collected incorrectly
- Update Scheduler Angular `drag-from-grid` demo
- Not possible to scroll timeline on touch devices
- Scheduler Collapse should allow to be used without any parameters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from support.