You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe the Remove feature could be extended to accept a delay value:
<button data-trimmings-remove=".modal" data-trimmings-remove-after="5">
Close modal
</button>
If no delay value is provided it waits for a click (current behavior). If a delay value is provided it removes the element after the delay time, whether a click was detected or not. Great for automatically dismissing notifications.
Hi! You would definitely be able to do this with the auto feature proposed in #1. The general auto directive would send particular events based on the type of element it's bound to—click for <a> and <button>; submit for <form>. If that bound button also has a remove directive, it would be triggered by the sending of the click event. So there's no need for a remove-specific version of this feature.
Closing this ticket in favor of continuing to discuss the API for #1, but if I've missed something here please let me know. Thank you!
Maybe the Remove feature could be extended to accept a delay value:
If no delay value is provided it waits for a click (current behavior). If a delay value is provided it removes the element after the delay time, whether a click was detected or not. Great for automatically dismissing notifications.
Similar to what @snellingio mentioned in #1
The text was updated successfully, but these errors were encountered: