2.0.5 • Published 8 years ago
ractive-ez-panel v2.0.5
Ractive Ez Panel
Panel component for ractive.js
Install
npm i ractive-ez-panelUsage
<EzContainer>
<EzPanel size="300px" mode="fixed" class="aside">
<EzContainer align="vertical">
<EzPanel mode="maximized">Maximize the panel</EzPanel>
<EzPanel>Panel 1B {{ value }}</EzPanel>
</EzContainer>
</EzPanel>
<EzPanel>
<EzContainer align="vertical">
<EzPanel mode="fixed" size="100px">This panel is exactly 100px high</EzPanel>
<EzPanel mode="minimized" class="footer">Minimize the panel to the space required by the contents</EzPanel>
<EzPanel />
</EzContainer>
</EzPanel>
</EzContainer>EzContainer
align: horizontal or vertical
EzPanel
size: A css measurement (including unit) for the panel (width in case of a horizontal container, height in case of a vertical container)mode: The sizing modeauto: Adjust the size of all the panels in the container automaticallyfixed: Adjust the size to be exactly that of thesizepropertyminimized: Use as little space as possible to display the content of the panelmaximized: Use as much space as possible to display the content of the panel