Ext Js: show childrent element when parent is hidden - extjs

I want to show children element as a part of parent element when parent is hide.
In practical terms, I need to show div when parent is hide.

Ext-Js is a container, item system. So elements can only have one parent, if you really want to do this you can move the element to another parent that is visible on that action. Your better bet is to hide all items on the parent that you wish not to display, and not actually hide the parent

Related

MUI Masonry with Collapse in an Item Overflows the Parent Width

Let's say we use MUI Masonry and in each of the items there is a Collapse element that is expanded if it gets clicked. If you click an item that needs to be moved to another column, it moves the items outside the parent's specified width!
This CodeSandbox demonstrates the issue. The original view is like:
Now, after clicking the first item, which does not require moving, I see:
Which is what I expected, but if I click one of the items at the bottom that requires moving it, it creates a new column outside the parent's width.
At the moment dynamic height like that is not supported. See this issue.

list of Items, bulk operation sample

This might simple but I need some pointers.
I have a list of items which I am rendering using map list (Parent Component) and item(Child Component).
There is checkbox inside child component
Parent has a button
Now, I want user should able to select few or all items from the list, and on click of button we should highlight the checked items alone.
I tried some flag passing, however could not figure out best approach.
Please suggest.
Thanks all.
Finally, figured out by adding operation code in parent component.
Child component just get status update in case.

Reattach a component to a different parent

I need to reattach a component to a different parent programmatically.
Let's say the parent of a div is a h1 element. If some button is pressed then this div should be detached and reattached to the body element directly.
How should I handle this in react.js? The component (the div in the above example) where I need this feature is part of a 3rd party library, so I don't have a way to influence where the user puts this component in the first place.

Looking for IE/z-index workaround for elements in different parents with same classname

I know about IE7's bug regarding z-index and how you can add a higher z-index to the parent of the element that you want to appear above its parent's siblings. But I have several list items of the same classname (each list item and its children have the same DOM structure), and each LI has a child element that must appear above the next list item in the DOM. For reasons I won't go into, I cannot place an unique classname or ID on each LI.
In IE7 the popdown is below the next LI. Any ideas given that I can't target the parent LI with a higher z-index? Thanks.
Example screenshot here: http://tinypic.com/r/2m5ud/6

Sizing panels in an ItemsControl

I have a parent view model, that contains a collection of other view models (of same type) (children). On Initialization the number of children will be decided (varying).
The child View consists of a button and a list box. Initially the listbox is hidden. On click of button the list box appears and on clicking outside (outside of the control or any other child button).
On init only buttons will be shown. I want these buttons to be spaced across the available width. The requirement is that once the button is clicked (when listbox is shown) the width of the whole child will increase (lets say 350) and when it is hidden it reverts back to the original size.
In the parent i am using a ItemsControl to show the children views. I have tried all controls but not able to figure ou a appropriate solution for this. I have two issues:
On Button click i am able to show current listbox. If i click another button teh first one goes off. Till here it works fine. But i also need that the currentopen listbox closes on click anywhere outside of the control (child control)
How to automatically size and resize based on what is clicked . First all should be propotionately sized and then when one is clicked it's size increases (here other childs resize with the rest available space). When the one (open control) is collapsed, all of them come back to normal proptionate sizes.
Any ideas ?
BTW, i am using MVVM pattern for this.
how about using a flag to direct the view to perform calc and refresh/readjust the sizing as when needed.
like on-click routine, set the flag on
whenever the view (pre-)painting/drawing event is kicked in, check if the flag is on, do the calc and sizing, then off the flag.

Resources