Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 영상처리
- stackoverflow
- NSCameraUsageDescription
- xcode
- AutoEncoder
- mac os
- Camera Usage Description
- Info.plist
- homebrew
- pkg-config
- VisualCapture
- OpenCV로 배우는 영상처리 및 응용
- WebAssembly in Action
- VAE
- OpenCV-4.1.0
- OpenCV
- 예제 실행 시 에러 관련_
- 웹어셈블리 인 액션
Archives
- Today
- Total
DEV.log
classes 본문
<script>
let current = 'foo';
</script>
<button
class:selected="{current === 'foo'}"
on:click="{() => current = 'foo'}"
>foo</button>
<button
class:selected="{current === 'bar'}"
on:click="{() => current = 'bar'}"
>bar</button>
<button
class:selected="{current === 'baz'}"
on:click="{() => current = 'baz'}"
>baz</button>
<style>
button {
display: block;
}
.selected {
background-color: #ff3e00;
color: white;
}
</style>
https://svelte.dev/tutorial/classes
Classes / The class directive • Svelte Tutorial
Classes / The class directive a. Basicsb. Adding datac. Dynamic attributesd. Stylinge. Nested componentsf. HTML tagsg. Making an appa. Assignmentsb. Declarationsc. Statementsd. Updating arrays and objectsa. Declaring propsb. Default valuesc. Spread propsa.
svelte.dev
'Svelte > tutorial' 카테고리의 다른 글
named-slots (0) | 2022.02.01 |
---|---|
slots (0) | 2022.02.01 |
custom-stores (0) | 2022.02.01 |
derived-stores (0) | 2022.02.01 |
readable-stores (0) | 2022.02.01 |
Comments