Skip to content

Event trigger based on attribute originEntity vs currentNote vs startNote #1856

Answered by zadam
daranable asked this question in Q&A
Discussion options

You must be logged in to vote

For this purpose there's originEntity which contains the entity which sort of triggered the event. In the case of runOnAttributeChange the originEntity is the attribute on which the change is being done. If you want to access the note owning this attribute then do just:

const note = api.originEntity.getNote();

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@daranable
Comment options

@zadam
Comment options

Answer selected by daranable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants