You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

jquery-layout

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-layout

A tiny layout engine on top of jQuery

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
64
3.23%
Maintainers
1
Weekly downloads
 
Created
Source

$.fn.layout()

A simple layout engine which can be used to build e.g. the UI of web and mobile apps.

Example

JS:

$(".managed-layout").layout()

HTML:

<div class="managed-layout" layout="vertical">
    <div height="50px">
        Has a height of 50px
    </div>
    <div height="*" layout="horizontal">
        <div width="100px">This DIV is 100px wide</div>
        <div width="50%">
            This DIV has a width of 50% of the space which
            remains after consuming all absolutely (px) sized
            DIVs.
        </div>
        <div width="*">
            Takes up the remaining space.
        </div>
        <div width="10%">
        
        </div>
    </div>
</div>

Attributes

layout = vertical | horizontal

width = <NUM>px | <NUM>% | *

height = <NUM>px | <NUM>% | *

Configuration

$.fn.layout.defaults.prefix

Sets a prefix for the attributes introduced by this plugin (layout, width and height).

FAQ

tbd.

Keywords

jquery

FAQs

Package last updated on 08 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts