Skip to content

Simple example for "Variables" inside a note? #1784

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

You must be logged in to vote

The way I would approach it would be to use promoted attributes to define the attributes.

And then frontend JS + render note to print out the final text with interpolated variables. You can access the (promoted) attributes from frontend JS like this:

api.originEntity.getLabelValue("routername");

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@netnem
Comment options

Answer selected by netnem
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