lifecycle - Using a Famo.us RenderController to stack container -
What do I think of Famo.us, the lifecycle of a randomable is managed by the structure and as a result we render Remove the node from the tree.
I have found that the render controller is responsible for showing or hiding the elements. The problem with the RenderController or even the lightbox is that I can not pile up the ideas as soon as I myRenderController.show (SurfaceA); MyRenderController.show (surfaceB);
The surface is not faded and is no longer visible.
How do I create a type of stacked layout where I can manage the appearance of each layer?
Render Controller
Implements a control over a node in the render tree. Add a render controller to control each node.
A simple example of the code link above shows how RenderController
is used along with swap surfaces They can be hidden from seeing them.
Two render controllers:
var rendererOne = new RenderController (); Var renderer = new render controller (); MainContext.add (modTop) (rendererOne) .add; MainContext.add (modBottom) .add (rendererTwo); // Both surfaces first renderer one. Show Show (Surface On); RendererTwo.show (surfaceTwo); // swaps that have shown visibility on a double click var = showing; Engine.on ('dblclick', function (e) {if showing} {rendererTwo.hide (); rendererone.show (surfaceOne);} and {rendererOne.hide (); renderer.two.show (surfaceTwo);} Showing = showing;});
Comments
Post a Comment