ekros / nice-react-layout Goto Github PK
View Code? Open in Web Editor NEWCreate complex and nice Flexbox-based layouts, without even knowing what flexbox means
License: MIT License
Create complex and nice Flexbox-based layouts, without even knowing what flexbox means
License: MIT License
Any plan to add an online demo?
If you have, let's say, a four-panel horizontal layout with a separator in the middle and you drag one panel from the left side to the right side or viceversa, the separator starts to behave weirdly when dragged. After some research, I narrowed it down to the internal representation of the layout (layout
and layoutOrdering
in the Layout state). It seems to happen when the original layoutOrdering
is modified. This ordering modifies the order
attribute of the flex items.
Given the following code:
<HorizontalLayout>
<Panel></Panel>
{foo ? <Panel></Panel> : null}
</HorizontalLayout>
It throws an error: TypeError: Cannot read property 'id' of null
It should ignore nullish children so this kind of logic can be used.
I came across an issue when I was adding panels dynamically. Please take a look at my work around:
https://github.com/ekros/nice-react-layout/compare/master...Jaygiri:patch-1?expand=1
Thanks for your work.
If I try to compose a layout from separate functional components then some features (e.g. mockup colors and fixedHeights) are ignored.
e.g. The following will split the space evenly between both panels and not color the 1st panel.
const Header = (height, message) => (
<Panel fixed fixedHeight={150}>{message}</Panel>
);
return (
<View>
<VerticalLayout mockup>
<Header message={'Hello'} />
<Panel>World</Panel>
</VerticalLayout>
</View>
);
First of all, thanks for a promising library which is both easy to use and yields good results.
It seems that when interaction/moving a separator it's logging in the console on every interaction. Is there any plan to remove logging on build?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.