14 lines
322 B
JavaScript
14 lines
322 B
JavaScript
import { LightningElement, track } from 'lwc';
|
|
|
|
export default class MyComponent extends LightningElement {
|
|
@track isFlowVisible = false;
|
|
|
|
launchFlow() {
|
|
this.isFlowVisible = true;
|
|
this.template.querySelector('lightning-flow').startFlow('ShowingText');
|
|
}
|
|
|
|
hideFlow() {
|
|
this.isFlowVisible = false;
|
|
}
|
|
} |