Hi! Can you please help in how I can create a sidebar nav for a user dashboard?
The question is originally posted by limitlessjoie2023 from Discord
Hi! Can you please help in how I can create a sidebar nav for a user dashboard?
The question is originally posted by limitlessjoie2023 from Discord
Regarding the sidebar menu, we have many ways to implement it. Here, I’ll provide the simplest tutorial using the Conditional View component, and you can configure the corresponding actions on the buttons to switch between different views.
I will share the specific project configuration with you (MOMEN | Build web apps without code), and you can check the effect. I’m not sure if this is what you were looking for, so feel free to ask if you have any questions!
Let me know if you need any adjustments!
This link is dead. Project has been deleted. Can you please build another example and share? In addition to this I am trying to figure out how to hide or show a nav button based on the users role.
Oops, that’s odd. Will do.
Working on adding it back.
I don’t know if this is worth it (but if its easy and makes sense) can you please expand on it with access as viewer to project and populate database as referenced in Conditional View | Momen Docs ?
Yep, we will do that.
Hey Paul, we just updated that, you can check this now : MOMEN | Build web apps without code
Ahh. Thank you so much, it connected the dots for me. But leads to more questions
I was trying to use (vertically) “tabs” for navigation in the side menu. I want the tab to indicate there is a change when it is clicked.
** In select view** I can get this to work at best with a double click action on the tab to navigate to the desired view. What am i doing wrong? I have the “select view” has parent “view” container if that matters.
Also, when you are using the button component like you are in your example > how do you indicate to the end user when it has been selected? I know how to change state on hover but I can not figure out how to do it “when clicked” , what am I doing wrong?
Ok, I think I understand a little bit more now. I placed button components inside conditional views, create cases and actions based off each case (so that I could have ability to stylize button). It is not pretty (well it is pretty…ugly ) but I think is effective for an example.
My follow up question is - for future reference, is there an easier way to achieve resetting the cases or “states” of the other buttons when moving from one case (gray view) to another (orange view), etc..? I didn’t know if this is where an Actionflow comes into practice, I have not got that far.
If anyone has any feedback, please feel free to post a reply
An easier way is to have everything depend on a page variable (last clicked button or something).
And all the conditional views just change that variable.
Thank you. I am having problems either understanding the concept of the page variable or procedure to achieve this. I have tried doing this with a duplicate page of the one I linked.
If you have time, or some one else qualified, can you please explain how wire it up?
on page> data> page variable> “last_clicked_button” (as page variable name) and Type=Text and Default = Blue View
JYK,
THANK YOU SIR ! It took me awhile but I got it. I have some questions:
I am using a conditional view with cases and each case is shown depending on what button is clicked. On button clicked (“chosen” view) I have Button > Action > Set Page Variable. I also have a Switch View case Action to show the desired “dashboard”. Is this correct or is there a more preferred Momen way.
Eric,
Thank you - awesome explanation.
Last question (I think) on this, why is the text in his example blue and mine is not? I was just wondering if I should be doing something more than just typing in “Empty Text”.
Empty Text is actually a commonly used data value that Momen has already built in for you. If yours isn’t shown in blue, I guess you manually entered the text 'Empty Text'
.
The role of Empty Text in this scenario is simply to indicate a value that is not equal to any of [Case 1 / Case 2 / Case 3]
. In fact, you can achieve the same effect by using any other string.
Eric,
I did manually type it in, so that makes more sense. I thought that since it was blue text it was a selection but could not figure out how to get there. Thank you for helping me put to pieces together on this one.