Napoleonic Political Magnificence

    This package has been deprecated

    Author message:

    Package no longer supported; use the Grid widget in hswidget instead

    hslayout
    TypeScript icon, indicating that this package has built-in type declarations

    2.5.1 • Public • Published

    hsLayout

    npm version GitHub docs Build Status Dependencies Status codecov Known Vulnerabilities NPM License

    Helpful Scripts framework-independent data management functions.

    hsLayout provides means to layout the browser window in various ways.
    It uses the mithril framework to create the layout.

    Installation

    npm i hslayout

    Usage

    The following snippet creates a layout that fills the provided root element with three rows. The first and third rows have a fixed size, while the middle row fills the remaining space.

    
    import { m, Layout } from 'hslayout';
    
    m.mount(root, {view: () => m(Layout, {
        rows: ["50px", "fill", "20px"],
        content:['Top row: 50px', 'Middle row: fill', 'Fixed footer']
        })
    });
    

    Install

    npm i hslayout

    DownloadsWeekly Downloads

    33

    Version

    2.5.1

    License

    MIT

    Unpacked Size

    851 kB

    Total Files

    40

    Last publish

    Collaborators

    • masterscripter