convert indentation to spaces

pull/2779/head
Peter Varholak 6 years ago
parent 65cc0d8b3f
commit 786ef70ca9
No known key found for this signature in database
GPG Key ID: 19AC6B9476876A84

@ -8,10 +8,10 @@ In this app we want to convert the text in the input field into specified symbol
```html
<script>
import { convertable } from './convertable.js';
import { convertable } from './convertable.js';
export let symbol;
export let text;
export let symbol;
export let text;
</script>
```
@ -19,7 +19,7 @@ We can now use it with the element:
```html
<div use:convertable={{ symbol, text }}>
<span>{symbol}</span>
<span>{symbol}</span>
</div>
```
@ -31,15 +31,15 @@ Update the return value of `convertable` function in `convertable.js`:
```js
return {
update ({ symbol, text }) {
tooltip.textContent = convertText(text, symbol)
},
destroy () {
tooltip.remove()
node.removeEventListener('mouseenter', append)
node.removeEventListener('mouseleave', remove)
}
update ({ symbol, text }) {
tooltip.textContent = convertText(text, symbol)
},
destroy () {
tooltip.remove()
node.removeEventListener('mouseenter', append)
node.removeEventListener('mouseleave', remove)
}
}
```

Loading…
Cancel
Save