Skip to content
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

Using in Blazor Templates #141

Open
HybridSolutions opened this issue Apr 9, 2022 · 0 comments
Open

Using in Blazor Templates #141

HybridSolutions opened this issue Apr 9, 2022 · 0 comments

Comments

@HybridSolutions
Copy link

Hi, I have a question about a specific usage.

I have a component that works as a page template and would like to define Dropzones in it so that the user could drag UI components into those zones or choose a zone name from a Dropdownlist and add a component to it without drag & drop. The issue is that I need to know which zones are available in that template by name so that I can populate the dropdownlist dynamically. Each template can have different Dropzones defined.

Is this possible with blazor-dragdrop? My template would look like this:

@* This is a razor component used like a page template *@
    @inject NavigationManager NavigationManager

    <div class="container">
      <div class="row">
        <div class="col-sm-12">
          <Dropzone name="HeaderContent"></Dropzone>
        </div>
      </div>
      <div class="row">
        <div class="col-sm-12">
          <Dropzone name="MainContent"></Dropzone>
        </div>
      </div>
    </div>

Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant