Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

121
Visualizações
Displaying Blazor components on a page based on its top and left position

I have a Blazor server application with few components on a page. These components are draggable and as the user drags I save every Top position and left position to the database.

I use the loop below to display the components on my page and when loaded the components stack on one another.

     @foreach (var group in MyModel)
        {
            <div class="draggable position-absolute" id="@extgroup.AddId">
                <MyComponent
                    Id="@extgroup.AddId"
                    GroupDescription="@extgroup.Description"
                    TopPosition="@extgroup.TopPosition"
                    LeftPosition="@extgroup.LeftPosition">
                </MyComponent>
            </div>
        }

How can I display the components in the exact position they were saved since I have all the values for top position and left position?

Thanks.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

MyComponent.razor

<div style="position:absolute; left: @extgroup.LeftPosition; top: @extgroup.TopPosition">

   (Put your content here)

</div>
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda