-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
[Toast] Build from html #280
Labels
lang/css
Anything involving CSS
lang/javascript
Anything involving JavaScript
type/feat
Any feature requests or improvements
Milestone
Comments
We are already working on this feature 😉 Stay tuned. |
Finally possible by #1129 |
y0hami
pushed a commit
that referenced
this issue
Nov 13, 2019
BREAKING CHANGE: contains some breaking changes to the core logic and settings. New Features - Image support just like icon - displayTime 'auto' calculates time by amount of words - Progressbars can have its own individual color now - A toast can be created out of existing dom nodes or markup now $('.ui.toast').toast() with clone support; - Toast is pausable on hovering to be able to mark/copy text or just hold on to have more time to read it - closeIcon can be displayed to the left - Support for `card` and `message` layouts Behaviors - get or check for existing toasts - stop/start display timer - get the remaining Time Actions - a toast can have a configurable amount of action buttons - support for default button selectors as in modal - displayable at the bottom of the toast as in modal or full width attached to the modal - also displayable to the right Changed defaults (aka breaking changes) - Toast is floating (aka has a shadow) - Progressbar decreases - Close-Easing is smoother instead of bouncy (still available for those who like it) - Icon is centered vertically - Toast display in neutral white background without icon (looks good, as it has a shadow now) - A possible given title is a bit larger than before (by using standard "ui header") - floating and hoverfloating moved from toast to toast-box to cover the whole toast including possible attached actions Core - Changed progressbar from css transition to css animation to be able to pause scrollbar on hover via css only - Return instance of created toast even when created dynamically via body so you can interact with and reference it via javascript afterwards - Support behaviors because of instantiation - Optimized LESS Code usage, refactored JS Closes #160 #280 #315 #316 #566
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
lang/css
Anything involving CSS
lang/javascript
Anything involving JavaScript
type/feat
Any feature requests or improvements
Description
It would be great if it was possible to build toast from HTML.. Would be useful when you have POST some data to the server and you want to show an error/info toast message due to user input error etc.
Example
Maybe something like this or another syntax that make more sense.
The text was updated successfully, but these errors were encountered: