What I envision is to use this menu on the opposite side of the UD Nav but use it like a Modal - so when a button is clicked (add users) the right side menu slides out and allows for input text, selects etc…
I am having a rough time with Modals - they are not very customizable, and they don’t live in their own element, so one modal will replace the next, not a lot of flexibility with CSS etc…
I think having a sliding out modal/menu would be a great feature.
Hey @mylabonline this particular component hit my component radar a while back…but just didn’t really know how I could bind it properly… so I moved onto my next component which was on my radar at the time…This does look super-cool…might have to re-look into it, or post some questions on this thread for how to do the things I don’t fully understand
Honestly, i’ve been wanting to implement the “blades” (believe thats the name the designers gave it) from Azure’s admin panel.
This would kinda-ish do the same thing, with less neatness.
Thanks @BoSen29 - my use case is actually the blades type feature like seen in the Azure portal, you nailed it! That’s where my idea for this request came from
As for the the new Window modules, they look great, but don’t fit this use case for me.
Yo @BoSen29 not to sure how to go about implementing the menu, as you in essance would be replacing a core bit of UD that is automatically done…I’m not too sure on it…plus found out today I missed a lot of options in those google charts I just released, so I kind of got to rebuild and republish 5 components…happy for a team-up always up for learning something new
As I felt a big need for a feature like this - I ended up using (for now ) the Modal Bottom Sheet and modified the theme to make the modal align to the side instead of coming up from the bottom.
In my CSS Theme I had to modify the .modal.bottom-sheet to override the bottom positioning of the modal, also needed to align it to the right.
@mylabonline is that demo animation built using universal dashboard? Looks awesome, I’m just starting out and wanting to build a utilities site for my colleagues - how did you set the persistent menu bar on the left side? Is it a UDList?
From the CSS above, using the width will shorten your sidenav, also make sure you use !important in some of your styles, as the UD theme will overwrite your customization without this.
As a newcomer to UD, I would recommend your browser developer tools to become your new best friend. This will help you identify what you want/can customize, you can also update the css live in the browser so you know what your end result will look like. once you have the customizations in the browser, copy/paste into your UD theme.
As you can see below, I updated the color of the sidenav to red using developer tools to see your customization/updates in realtime.
UD is soooo customizable, and I find I can quickly enter a rabbit hole with it. My theme.ps1 file is now over 1000 lines
Mate, you’re a champion, thank you for that (udsidenav! duh! of course haha). And then I run into the problem that I’m using v3 and not v2, “in v3: Instead of using New-UDSideNav, you will now use a combination of New-UDAppbar and New-UDDrawer.” I’ll suss something out
I can definitely see myself spending some serious hours building dashboards! Being able to transfer a lot of the code from previous PowerShell scripts is so good.
The page in your animation looks fantastic - I may have to pick your brains for how you kinda scaffolded all that together
Hi @mylabonline well I was running out of components to build. I recently released a sticky top navbar component, however last night as I also really like the look of this, I gave building this a go. So although it only lists a few dependencies the list is actually this long:-
browserify-optional
classnames
eve
prop-types
snapsvg-cjs
react-burger-menu
ast-transform
ast-types
browser-resolve
snapsvg
through
esprima
escodegen
tslib
resolve
is-core-module
path-parse
estraverse
esutils
esprima
optionator
source-map
has
function-bind
prelude-ls
deep-is
word-wrap
type-check
levn
fast-levenshtein
type-check
fastest-levenshtein
Anyways it built man! I got this to work so the only thing for me to really finish is make a ton of parameters to style the menu that pops out and a ton of other parameters…Only thing I am stuck on at the moment is producing the link list within the menu, but I got an idea of how to fix that, anyways thought I should update this post to say hopefully this burger menu will be on the marketplace real soon
Hello @mylabonline well I was at work today, but when I got home I thought of a way to solve the hyperlink issue in the menu, so here is a full working demo which I have also added all the props necessary to customize this, including a -Right switch parameter for menu placement, anyways please see demo below
Thanks man, originally I did only have this built to handle the one effect but figured how I could add it dynamically, so all the effects are available as a validated set list, all included.
Without CSS styling being applied there is no burger button…I have set parameters for the burger button color, hover color, position, alignment etc…but as for your question, I know it’s possible from the demo website, just thinking should just be a case of set-udelement to set the menu open I will have a tinker to make sure this also works from pressing a button to open the menu…then I just need to write a blog for using it, then will publish it to the powershell gallery which will sync it to the market place. I am not at work Monday so hopefully publish then if not before
Boom I just published my blog about this component:-
and I stuck this on the powershell gallery, so it will appear on the marketplace soon, but if you cannot wait till then you can find the powershell gallery link here:-
It does state on the npmjs page it works in FIREFOX and CHROME ok…I have not tested this in a live environment yet. Other than doing a demo to prove it works as expected if you get me.
The -Links parameter is the same as the -Content parameter so this side menu should be able to handle input fields etc…you might need to tweak the CSS display to get it to display correctly one under the other. But would be nice to see what you do with it https://marketplace.universaldashboard.io/Dashboard/UniversalDashboard.UDBurger
I just got it downloaded into PU, but for the life of me, I cannot get the onClick event to popup the menu. I took your code snip from your blog, removed the content and pasted it into a UDButton - OnClick and nothing happens.