Skip to content

Commit

Permalink
fix(interface-asset): Adds an example parameter to the Trigger (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMeunier authored Jun 5, 2024
1 parent 55a5c1b commit bd11688
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ export class <%= IAName %> extends IntuifaceElement {
displayName: 'A Trigger Example',
description: 'Raised when the property example changed'
})
public exampleTrigger(): void {}
public exampleTrigger(
@Parameter({
name: 'triggerParam',
displayName: 'Trigger parameter',
description: 'A trigger parameter example.',
defaultValue: '',
type: String
}) triggerParam: string
): void {}

//#endregion Triggers

Expand Down Expand Up @@ -76,7 +84,7 @@ export class <%= IAName %> extends IntuifaceElement {
if (this.propertyExample !== actionParam) {
this.propertyExample = actionParam;
// raise the trigger
this.exampleTrigger();
this.exampleTrigger('An example parameter string value');
}
}
//#endregion Actions
Expand Down

0 comments on commit bd11688

Please sign in to comment.