-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More functionality #6
Conversation
# Conflicts: # dist/build.js.map
removeAll method added README.MD improved
src/Notify.vue
Outdated
<transition-group name="notify" tag="div" @enter="slideDown" @leave="slideUp"> | ||
<div v-for="(item, key) in items" :key="key" class="notify-item"> | ||
<div :class="item.options.itemClass"> | ||
<span :class="item.options.iconClass" v-if="item.options.iconClass"></span> {{ item.text }}</div> | ||
<button v-if="item.options.closeButton === 'bulma'" class="delete" @click="removeItem(key)"></button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not like the strict tie-in to bulma (or bootstrap for that matter), isn't there another solution that will give the same results?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe something like that:
<button v-if="item.options.closeButtonClass" :class="item.options.closeButtonClass" @click="removeItem(key)" type="button" aria-label="Close"></button>
<span aria-hidden="true">×</span>
</button>
If closeButtonClass option === false (default false) - there is no close button
Would this be good?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jup, that would be a lot better :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@websmurf done
Hi Adam, please review my PR. |
New options:
New methods:
Also some CSS fixes (margin between notifications) and README.MD improvement