Hi,
I'm trying to use Toast control.
My current problem is that I set Icon = "e-success toast-icons" but only a little square is shown with the Toast in place of the icon
What could be my error?
thanks a lot, michele
<div class="col-lg-12 control-section toast-default-section">
<SfToast ID="toast_default" @ref="ToastObj" Title = "Success!" Content="Your message has been sent successfully." CssClass="e-toast-success" Icon="e-success toast-icons" Timeout="5000" >
<ToastPosition X="@ToastPosition"></ToastPosition>
</SfToast>
<div class="col-lg-12 col-sm-12 col-md-12 center">
<div id="toastBtnDefault" style="margin: auto;text-align: center">
<button class="e-btn" @onclick="@ShowOnClick">Show Toasts</button>
<button class="e-btn" @onclick="@HideOnClick">Hide All</button>
</div>
</div>
</div>
<style>
.toast-icons.e-success::before {
content: "\e701";
}
</style> |
Thank's a lot for the sample code,
I'm trying to realize a generic component and I had effectively a problem (nowith css
m.
<SfToast @ref="ToastObj" CssClass="e-toast-success" Icon="e-success toast-icons" Timeout="0">
<ToastTemplates>
<Title> Conference Room 01 / Building 135 10:00 AM-10:30 AM </Title>
<Content> Adaptive Tiles Meeting </Content>
</ToastTemplates>
<ToastPosition X="Right"></ToastPosition>
</SfToast>
<style>
.toast-icons.e-success::before {
content: "\e90b";
}
</style> |