Exposed event parameters indexed property
hi
is there a way to tell in the template if an event's parameter was indexed or not?
thanks you
Not directly, but you can do it by accessing the AST node of the event definition. Something like this should work:
{{#each ownEvents}}
{{#each astNode.parameters.parameters}}
{{#if indexed}}
indexed
{{/if}}
{{/each}}
{{/each}}
See here for reference on the AST node for each parameter, including the indexed property.
thank you very much @frangio
i was able to read it like this {{#with (lookup ../astNode.parameters.parameters @index)}}{{#if indexed}}:white_check_mark:{{/if}}{{/with}}
not sure if you want this issue closed or left to expose it later on
Let's leave it open, it would be nice to expose this somehow.