Hello,
I'm new to Angular, but in the past days i successfully the <ejs-sidebar> component to my project. It looks great and works also very well.
I'm currently experiencing to implement a button, similar to the button used on Google-Maps to open/hide the sidebar (see the area marked with a red circle on the screenshot).
I would like to place the button at the right edge and in the middle of the sidebar (similar to Google Maps).
At the moment without any success.
Is it even possible to extend this sidebar ?
If yes, can you give me some hint, how to go on with the implementation ?
Thanx in advance,
Best Regards,
Daniel
Thank you very much for the demo code. It is exactly, what i was looking for. You really saved my day :-)
I extended the sidebar with an "ejs-treeview"
1) If the text is too long (e.g. the menu item "Components" -> "Calendar and some other things"), the text should be wrapped in several lines, but the horizontal scrollbar should not apear at the bottom. It would be also good if you could click on all the lines of the text. At the moment you can only click on the first line. There are already CSS instructions from me in treeview.css, in the line / * word wrap * /, but it doesn't work completely.
2) Is there a way to add a vertical scrollbar without the sticky button disappearing ? For example, if you open both menu items "Components" and "API Reference", then you cannot see all the submenu items. (When I added the vertical scrollbar, the sticky button was no longer visible.)
Thank you again for your support,
Daniel
Thank you very much for your help.
It worked very good.
I have an additional question to query 2.
Is it also possible to display the vertical scrollbar but keeping the width of the Sidebar unchanged and let the Treeview fill the remaining vertical space ?
After a while somehow i realized a solution, to completely hide both of the scrollbars, but allowing the scrolling. To (re)calculate the height of the Treeview (to fill the remaining space) i used a window-listener.
Is it so, that a fixed height has to be supplied to allow the scrolling ?
Thank you again for your assistance,
Daniel
Thank you again for your support.