-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1392 - Add actionHandler to ClayManagementToolbar #1402
Fixes #1392 - Add actionHandler to ClayManagementToolbar #1402
Conversation
@@ -5,6 +5,7 @@ | |||
*/ | |||
{template .render} | |||
{@param name: string} | |||
{@param? _handleActionItemClicked: any} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SF?
@@ -42,7 +43,10 @@ | |||
{param contentRenderer: 'image' /} | |||
{param disabled: $disabled /} | |||
{param elementClasses: $classes /} | |||
{param events: ['itemToggled': $_handleItemToggled ] /} | |||
{param events: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SF?
@@ -116,6 +116,11 @@ class ClayComponent extends Component { | |||
|
|||
const listeners = this.getRawListeners_(eventName); | |||
|
|||
if (this.actionHandler) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the actionHandler
be able to prevent events?
We've had an offline conversation about this... the proposal is to move this to a
|
Resent #1405 |
No description provided.