Skip to content

[WIP] Add support custom action#4

Open
reynaldichernando wants to merge 1 commit into
mainfrom
custom-action
Open

[WIP] Add support custom action#4
reynaldichernando wants to merge 1 commit into
mainfrom
custom-action

Conversation

@reynaldichernando

Copy link
Copy Markdown
Member

Fixes #3

In addition to predefined actions, we want to support custom actions, by allowing user to pass in label, icon, and any arbitrary JavaScript function.

@reynaldichernando

Copy link
Copy Markdown
Member Author

Right now, this doesn't work, I suspect because injectScript only support string, while our javascript function is a literal type function (not a string), which maybe why it fails

@reynaldichernando

Copy link
Copy Markdown
Member Author

not sure if we move to override component (meaning no more injectScript), if this will fix itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for custom menu action

1 participant