Angular Material Not Locked sidebar - html

I've a sidebar like this:
Button 1
Button 2
This Starter Application consists of a Toolbar, SideNav (with two buttons), and Content area.
This is the content area!
Current Behaviour - when i remote the md-is-locked-open attribute and start to show the sidebar if the user clicks a button, then the side bar is fullscreen and not inside the content area.
So it differs in the following points form the locked version:
Its over the toolbar
It grays ot the main content
its over the content area
Required Behaviour - what do i have to change to have it inside the content area? So it looks exactly the sameway like it is when its locked .
It should be unter the toolbar
Should not overlap main content (just move it to the right=
Should not gray out other content
Codepen Here

Just change the:
<div layout="row" flex>
above the sidenav for:
<md-content layout="row" flex>
and the corresponding closing tag. And that's it!
The md-toolbar must be sibling to an md-content to get the behaviour you are looking for.
EDIT
For your further requirements please check this Codepen I've made. It does exactly what you want (override the sidenav behaviour to hide the overlay and push the contents to the right): http://codepen.io/anon/pen/pjXYMa

Related

HTML, CSS | Create a hidden shelf underneath modal

While improving my CSS skills, I got an idea based on a UX design I found.
In that UX design, there's a modal, that underneath it, there's a shelf, that opens up and contains extra data.
Now, I'm using Mantine modals in my project (Mantine v4.2 & React v18), but I couldn't get the desired behavior and I want to create my component.
I'm not asking for the full implementation, because I want to achieve the goal myself, but I do need help with the positioning of the divs one under another:
Imagine that we have 2 divs inside the container div:
<div class="modal">
<div class="modal-content">
</div>
<div class="modal-shelf">
</div>
</div>
Now, when the shelf is hidden, it needs to be behind the modal, centered vertically to the viewport, and right aligned to the edge of the modal,
But when it opens, it moves the modal to the left, so it can take the space, and center both modal and shelf.
Now, the limitation that I have is the fact that I don't know the height of the content of the modal itself.
EDIT: For simplicity, this is what I mean:
Bootstrap calls it an Offcanves
[Bootstrap Offcanves][1]
[1]: https://getbootstrap.com/docs/5.2/components/offcanvas/
You can check it to see how it works.

Panel In Syncfusion

Is there any way can we create panel in syncfusion, which can be expandable and collapsible? I wish to give name to the panel, and add related controls to inside the panel.
We have Sidebar component that typically acts as a side container to place primary or secondary content alongside the main content. By clicking a hamburger menu icon, you can expand or collapse the sidebar. The component can also allow any type of HTML content or component to be placed in the Sidebar, like menus, lists, and tree views, etc.,
To know more about Sidebar component, refer the below links.
Demo : https://ej2.syncfusion.com/aspnetcore/Sidebar/DefaultFunctionalities#/fluent
Documentation : https://ej2.syncfusion.com/aspnetcore/documentation/sidebar/getting-started
The Dashboard Layout component provides the capability to arrange, resize, and reorder the panels within the layout. The Dashboard Layout is a layout component which can be used to render custom components like Grid, Chart, etc., You can also interact with the panels, to perform operations like resizing or moving the panels. But it can’t be able to do the expand and collapse functions.
To know more about Dashboard Layout component, refer the below links.
Demo : https://ej2.syncfusion.com/aspnetcore/DashboardLayout/DefaultFunctionalities#/fluent
Documentation : https://ej2.syncfusion.com/aspnetcore/documentation/dashboard-layout/getting-started
Also, we have an Accordion component with the support of expand and collapse functions. It’s a vertically collapsible content panel that displays content, one or multiple at a time, within the available space. Click on the header element to expand or collapse the corresponding Accordion panel to display its content.
To know more about Accordion Layout component, refer the below links.
Demo : https://ej2.syncfusion.com/aspnetcore/Accordion/DefaultFunctionalities#/fluent
Documentation : https://ej2.syncfusion.com/aspnetcore/documentation/accordion/getting-started#add-aspnet-core-accordion-control
Kindly check whether any of the above shared component suits your requirement.

how can I resize container according to content in it By using *ngIf and other directive?

I have 1 container which has single image and on edit button I want to increase the size of container according to my incoming content .Here I am sharing the image of containers
Image 1:
this is container before clicking on edit button
https://i.stack.imgur.com/fgAog.png
Image 2:
this is container before clicking on edit button
https://i.stack.imgur.com/3Xnwm.png
you should ideally put look and feel related things into css class. you should add/remove css class on click of the button.

fullPage.js - can't view content higher than section

I have page based on fullPage.js and Bootsrap. By default is content in section vertically centered. But my content is dynamic and changes on click. It means, that my content has on every click different height and it cause div jumping on page.
Disabling vertical center solve the problem, but only for desktop. On smaller screen (mobiles, tablets) I can't see whole content in section.
With vertical center enabled the section is high as content.
Live example is more than word so:
Example with verticalCenter enabled (not working)
Example with verticalCenter disabled (not working)
Finally the solution was specify container height.
I would encourage you to use the responsiveWidth or responsiveHeight options provided in fullpage.js. That's going to create the best user experience for small screen devices.
But if you still want autoScrolling then you can always go for the scrollOverflow option as in this example and to adjust the scroll bar dynamically you would have to call $.fn.fullpage.reBuild() on any click that changes triggers a change in the section's height.

Can we edit chrome devtools layout?

I wanna know if it's possible to edit chrome/chromium devtools layout.
The reason is with a x Width > actualWidth, the layout is the left one (this is what i want as full time layout) and over the x Width < actualWidth, the layout change with the right one and I got square monitor so I can put the width too much if I want to see my render and the code javascript side-by-side.
So does it have a way to edit the devtools layout? If there is a way, how I can change the devtools layout?
Layout sample
Note: I'm using the right layout (dock to right)
Thanks for the answer
In the tab area for the content you are editing. On each side there is an icon that looks like a triangle towards a sidebar. Click that and it will hide the sidebar it is beside to give you more space.
Beyond that, you can click the overflow menu in the primary panel menu (the three icons beside the close button) and then select "Dock to Bottom" from the top layout choices.
Finally, the latest method available is to go into the Settings. Then under "Appearance" find Panel layout and change that to horizontal. This will then force the panels in elements and sources at least to be at the bottom always.
Each of these methods should provide you more area to work.