Creating split panel in react js - html

I need to create split div functionality in reactjs. As shown in this fiddle. this one is implemented in extjs. I want similar implementation is reactjs. We need to add grids on either side of split panel. I am short of ideas on how to implement it. Not looking for code, but need ideas.

Hi you can check this package called react-split-pane. Also there you can find example for you case. Also there others examples.

Related

Forge data visualization_Add information

Currently I have placed sprites and I have the events as in the example on the page: https://forge.autodesk.com/en/docs/dataviz/v1/developers_guide/examples/handling_sprite_events/.
But I don't know how to add information with a pop up as seen on the web.
How to do this with the information and displaying it in Forge: Objective
I have not found any information on how to do it and the example on Github https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app/tree/main/client/pages I don't quite understand it, already that many things are mixed. If someone could help me. I am starting on this.
Basically what you want to achieve is to display an html div on hover and hide it when not hovering.
You can inspire from this post Placing custom markup which is pretty close to what you want to achieve.
However, the examples you mention are using the Data Visualization extension and the React component called CustomTooltip. If you are using React in your project you can definitly take a look at the Hyperion's reference app.

How to create complicated layout in React Dashboard App

I am creating front end of Dashboard App using WebStorm IDE and React framework.
As I already created UI design, I want to continue with creating of layout. I want firstly create empty rectangles and then insert functions in them (not sure if it is the best workflow)
But there is a problem, that layout is a bit complicated, see picture:
How should I proceed?
Should I use nested div tags and insert them into render function? Or there is other solution?
Should I use nested div tags and insert them into render function?
Yes, that's exactly how you should proceed.
Use css to display them like you want. You can use front-end libraries to help you, like:
Material UI
React Bootstrap
If you want to use bootstrap, you can have a look at how to display the grid system.
You can also follow this tutorial from w3schools to learn more about flexbox and how it works only with css (without material or bootstrap)

How to provide widget way in UMBRACO?

Is there any best practices?
Say, I need to develop a flip-flop block with title/icon on front and text on reverse side.
And I want that user can simply insert that block in a grid. With params, I said above.
From here - I see only macros-way (simple). I mean - develop each block in macros, so umbraco-engine can paste it (macros) to grid "from-a-box". But, I don't believe it, I can not even create a folder from backoffice for macro!
Harder way - dive into custom property editor, many setups, many moves. And I don't sure - can I paste result into grid?
I see, that people talks about some great package that called "ARCHETYPE", but project is closed for now... Should anyone bet on that?
Which way is right?
If I understand correctly, you are using Umbraco Grid and want to create a custom grid edtior. If that is the case, I would recommend you looking into LeBlender. It basically enables you to create grid types in the same way you make document types, including templates.

Dynamically changing text/contrast of entire web site?

This is using MVC 4 with Visual Studio 2013:
I am wondering on how I would approach changing the text of my website dynamically through the click of a button. This is also the same for contrast. I am wondering if there's any plug ins or approaches I can take to do this?
Heres an example of it being implemented correctly : http://www.bbc.co.uk/accessibility/guides/change_colours/#
Giving different text sizes and contrasts etc. How would I approach this?
My idea was to have a button that calls the same CSS sheet with the new colour /contracts. But that would mean I would need about 4-5 CSS sheets that are exactly the same with just the text/contrast changing. Is there a better approach to this?
May be Observables and data-binding is your best solution here.
Basically, you can bind your html with observables (your data model). When your data model's state changes, your UI updates automatically and vice-versa. It follows the MVVM pattern.
One of the most popular libraries out their for MVVM is Knockout.js (Here: http://knockoutjs.com/) This will make your life much easier! It made mine. :-)
Hope this helps!

Code Annotation and Preview with HTML

http://twitter.github.com/bootstrap/scaffolding.html
http://angularjs.org/#/list (the basics one)
Basically, I'm wondering what tools there are out there for me to create what they have there. The one I really like is he angularJS one, because I need a way to allow annotations within my code snippets.
So, basically. My question is this:
How did they create the annotations to work at certain places in the code (so you hover over the highlight), is that created from a library. If so, where is this library found? I found some online, but they all looked like terrible sticky notes, and I want something more stylish like this.
And finally, how do i get the line numbering to work?
Thank you.
Alex.