Skip to content

How do I call Toggle for a modal? #601

@coolblue2000

Description

@coolblue2000

How do I call toggle on a modal?

For instance I have the following

<BSModal DataId="modal1">
    <MyComponent></MyComponent>
    </BSModal>

@code{
   public async Task Show()
   {
         //toggle modal1
   }
}

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions