Skip to content

Commit

Permalink
Add allowHtml attribute to snackbar object, which allows for HTML i…
Browse files Browse the repository at this point in the history
…n the `message` attribute
  • Loading branch information
JosephusPaye committed Jul 4, 2016
1 parent 5de029a commit a833c79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### New
* Add `autofocus` prop for UiTextbox and UiAutocomplete
* Add `buttonType` prop to UiButton and UiIconButton
* UiSnackbarContainer: Add `allowHtml` attribute to snackbar object, which allows for HTML in the `message` attribute

### Fixes
* UiTextbox and UiAutocomplete: Fix `debounce` prop handling
Expand Down
7 changes: 5 additions & 2 deletions src/UiSnackbarContainer.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<template>
<div class="ui-snackbar-container" :class="[position]">
<ui-snackbar
:message="s.message" :duration="s.duration" :show.sync="s.show" :action="s.action"
:duration="s.duration" :show.sync="s.show" :action="s.action"
:action-color="s.actionColor" :persistent="s.persistent" :id="s.id" auto-hide

@shown="shown(s)" @hidden="hidden(s)" @clicked="clicked(s)"
@action-clicked="actionClicked(s)"

v-for="s in queue"
></ui-snackbar>
>
<div v-html="s.message" v-if="s.allowHtml"></div>
<span v-text="s.message" v-else></span>
</ui-snackbar>
</div>
</template>

Expand Down

0 comments on commit a833c79

Please sign in to comment.