Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Add mapping of CodeMirror events to actions#20

Open
omghax wants to merge 1 commit intomasterfrom
events-hash
Open

Add mapping of CodeMirror events to actions#20
omghax wants to merge 1 commit intomasterfrom
events-hash

Conversation

@omghax
Copy link
Copy Markdown
Contributor

@omghax omghax commented Jun 1, 2016

This adds an events property which allows you to declaratively set up CodeMirror event handlers from your templates, like so:

{{ivy-codemirror events=(hash change=(action "onChange"))}}

The onChange action would then be invoked whenever a CodeMirror change event occurs, passing along any arguments from CodeMirror. For now I'm assuming that events is unbound, so changing it after the initial render would not cause the event handlers to be updated.

@omghax
Copy link
Copy Markdown
Contributor Author

omghax commented Nov 9, 2016

This would be a breaking change, and would necessitate a 3.0 release.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant