Liquid alignment for border-box element
npm install dock-n-liquidDOCK'n'LIQUID - npm dock-n-liquid
===================================
This module helps the liquid designing.
It aligns the child elements to dock to its parent recursively.
APIs
----
dock_n_liquid - enables a simple liquid layout.
dock_n_liquid.init()__ - initializes all dock classed elements as a dock_n_liquid panel.
dock_n_liquid.select(element) - selects a html element and returns dock_n_liquid instance.
dock_n_liquid.requestFullscreen(element) - requests to be a fullscreen mode.
dock_n_liquid.exitFullscreen() - exits from the fullscreen mode.
dock_n_liquid.detach() - detaches the element from its layout tree.
dock_n_liquid.attach() - re-attaches the element to its layout tree.
dock_n_liquid.show(state) - shows or hides the panel.
dock - declares the element is the panel.
top - declares the element docks to the top of the parent element. the height style or attribute must be specified.
left - docks to the left. width must be specified.
right - to the right. width must be specified.
bottom - to the bottom. height required.
resizable - The panel could be resized by dragging a handle generated on its edge.
window.resize event will be dispatched.
html
Docking to the top
menu#1
menu#2
menu#3
menu#4
menu#5
style="width:120px;overflow-y:auto">
content#1
content#2
content#3
content#4
content#5
The Content that occupies the rest of client area.
MIT LICENSE