Looks really cool, would love to use this in a project of mine. Is it possible to attach a layout to an existing react component and run it inside that? From the documentation I see that passing a DOM element to init() is possible, not sure if that's going to make it in my case..
Show HN: GoldenLayout – JavaScript layout manager with multi-screen support
31–39 of 39 posts
you can create a layout in any DOM element, just pass it as the second argument to the constructor `new GoldenLayout( config, element)` - getting it to work well with reacts component-lifecycle might be a bit more of a challenge though
Re: Show HN: GoldenLayout – JavaScript layout manager with multi-screen support
#32Re: Show HN: GoldenLayout – JavaScript layout manager with multi-screen support
#33Re: Show HN: GoldenLayout – JavaScript layout manager with multi-screen support
#34Does anyone know anything like this that would work well within a React based app?
Re: Show HN: GoldenLayout – JavaScript layout manager with multi-screen support
#35Does anyone know anything like this that would work well within a React based app?
I don't have much experience with React, so maybe I can't tell, but is there any reason why this won't work? It even has a link to a tutorial on how to use it with React on the front page.
https://www.golden-layout.com/tutorials/getting-started-reac...
Re: Show HN: GoldenLayout – JavaScript layout manager with multi-screen support
#36Does anyone know anything like this that would work well within a React based app?
I don't have much experience with React, so maybe I can't tell, but is there any reason why this won't work? It even has a link to a tutorial on how to use it with React on the front page. https://www.golden-layout.com/tutorials/getting-started-reac...
Doh - RTFM as usual. Thanks.
Re: Show HN: GoldenLayout – JavaScript layout manager with multi-screen support
#37Cool, thanks for sharing! Another project providing layouts we've been using in the Jupyter project is the phosphor library: http://phosphorjs.github.io/ (demo of layouts at http://phosphorjs.github.io/examples/dockpanel/).
Re: Show HN: GoldenLayout – JavaScript layout manager with multi-screen support
#38Looks great. I'm afraid I'm flailing a little bit on React, though. All the examples I can find are using older versions of react. Is there an example using the current version? Trying to figure out what I call ReactDOM.render with if the DOM is already being modified by GoldenLayout... Thanks!
Re: Show HN: GoldenLayout – JavaScript layout manager with multi-screen support
#39Cool, thanks for sharing! Another project providing layouts we've been using in the Jupyter project is the phosphor library: http://phosphorjs.github.io/ (demo of layouts at http://phosphorjs.github.io/examples/dockpanel/ ).
PhosphorJS seems truly amazing. Dragging and resizing things feels like using native controls. The example has a polished look and everything is written in well-commented and easily understandable TypeScript without any nonsense external dependencies like jQuery.