Skip to content

Commit

Permalink
feat: 문서 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
indongyoo committed Mar 18, 2024
1 parent dc3ae53 commit 5946428
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ class SettingsView extends View<Setting[]> {
<span class="title">Check All</span>
${new SwitchView({ on: this.isAllChecked() })}
</div>
<div class="body">
<ul class="body">
${this.data.map((setting) => html`
<div class="setting-item">
<li>
<span class="title">${setting.title}</span>
${new SwitchView(setting)}
</div>
</li>
`)}
</div>
</ul>
</div>
`;
}
Expand All @@ -54,7 +54,7 @@ class SettingsView extends View<Setting[]> {
}

@on('switch:change', '> .body')
private _settingViewChanged() {
private _changed() {
this.subViewIn('> .header', SwitchView)!.setOn(this.isAllChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/what-is-rune.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SettingsView extends View<Setting[]> {
}

@on('switch:change', '> .body')
private _settingViewChanged() {
private _changed() {
this.subViewIn('> .header', SwitchView)!.setOn(this.isAllChecked());
}

Expand Down

0 comments on commit 5946428

Please sign in to comment.