Open coolblue2000 opened 1 year ago
<BSModal DataId="modal1" @ref="modal">
<MyComponent></MyComponent>
</BSModal>
@code{
private BSModal modal;
public async Task Show()
{
modal.ShowAsync();
}
}
Thanks that is great!
While this is still open; this would be a great example to be added to the docs :)
How do I call toggle on a modal?
For instance I have the following
I want to do some processing in Show() and set some parameters in MyComponent etc then show the modal. All the examples simply trigger the modal from a button click.