Change view when clicking on another item?

Asked

Viewed 56 times

-1

I’m making an email application and I want when I click the email being viewed to change.

Front-end da aplicação de email

What I want to happen is:

I want to apply the same function in both parts. As for clicking on the email, if I click on sender 2 I want it to appear in the view area, if I click on another, I want that other to be shown... Without reloading the page.

It is feasible to do these functions??

  • 1

    I couldn’t understand what you meant by When I click the sender2, I can visualize the email clicked in half to the right of the screen, and the same goes for the menu to the left,

  • I want to apply the same function in both parts. As for clicking on the email, if I click on the sender2, I want it to appear in the view area, if I click on another, I want that other one to be damaged

  • Have you written the code? What part of your code are you struggling with? Where is the function? Post the interesting part of your code question so we can help you in the best way possible.

  • 1

    just do a function like mudarView(ID da mensagem) and then in the next div you remove everything you have inside and request the database with message id and just print again

  • Beautiful interface, this UI is from the Vue.js? @Leonardoebert framework

  • @Godfrey the King, I haven’t written the code yet, I just want to know if I’ll have to use Vue event handlers or other resources

  • Vue.js ? whatt this is new to me

  • You can use the event handlers yes. Now I have to agree... What a wonderful interface! Congratulations.

  • 1

    @Diogo, this interface I created using the Quasar Framework, is very good and easy to use, I recommend you take a look at the documentation (very good and great), because you can do a lot with Quasar.

  • Thank you so much @Godfrey

  • 1

    @13dev, I’ll try that function you mentioned

Show 6 more comments

1 answer

0


Right, do a function that receives the email ID

This function will be responsible for when triggered fetching the information from the clicked email and fill in the direct field.

I could understand the logic?

  • This will work for any email clicked in the list

  • Got it, thanks a lot @Pedro Soares

Browser other questions tagged

You are not signed in. Login or sign up in order to post.