Skip to content

Commit

Permalink
Add tertiary action example
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Aug 20, 2020
1 parent a3d480d commit 73b0ddd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/AppSidebar/AppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</script>
```

### Editable title after click
### Editable title after click with custom tertiary action
```vue
<template>
<AppSidebar
Expand All @@ -89,7 +89,11 @@
:title-placeholder="titlePlaceholder"
:subtitle="subtitle"
@update:title="titleUpdate">
<!-- Insert your slots and tabs here -->
<template slot="tertiary-actions">
<form>
<input type="checkbox" @click="toggledCheckbox"/>
</form>
</template>
</AppSidebar>
</template>
<script>
Expand All @@ -105,6 +109,9 @@
methods: {
titleUpdate(e) {
this.title = e
},
toggledCheckbox() {
alert('toggle')
}
}
}
Expand Down

0 comments on commit 73b0ddd

Please sign in to comment.