Rename files containing action functions

pull/6962/head
Nayan Gautam 5 years ago
parent 9d76fca1ef
commit 7e360443d2

@ -1,5 +1,5 @@
<script> <script>
import { clickOutside } from "./pannable.js"; import { clickOutside } from "./click_outside.js";
let showModal = true; let showModal = true;

@ -12,7 +12,7 @@ Actions are essentially element-level lifecycle functions. They're useful for th
In this app, we want to make the orange modal close when the user clicks outside it. It has an event handler for the `outclick` event, but it isn't a native DOM event. We have to dispatch it ourselves. First, import the `clickOutside` function... In this app, we want to make the orange modal close when the user clicks outside it. It has an event handler for the `outclick` event, but it isn't a native DOM event. We have to dispatch it ourselves. First, import the `clickOutside` function...
```js ```js
import { clickOutside } from "./pannable.js"; import { clickOutside } from "./click_outside.js";
``` ```
...then use it with the element: ...then use it with the element:

Loading…
Cancel
Save