2.0.3 • Published 12 months ago

@bitlib/flayout v2.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Flayout

NOTE: This is in Alpha, still under development.

Fluid Layout provides a simple approach to implement resizable panes with a few lines of Javascript and CSS

Why?

Because I haven't found anything simple, lightweight and scalable. Seems like people tend to over-engineer things nowadays. So this is just so solve a personal need that I decided to publish.

Usage

This is still under development but I kind of like publishing code as I work so anyone can see the progress in a "real-time" way. So.. so far this are the setup steps:

  1. Install the library.
npm i -S @bitlib/flayout
  1. Add the script.
  <script src="./node_modules/@bitlib/flayout/dist/flayout.umd.min.js"></script>
  1. Include the CSS.
  <link rel="stylesheet" href="./node_modules/@bitlib/flayout/dist/flayout.min.css" type="text/css" />
  1. Use the following layout model.
    <div class="flayout-main">
      <div class="flayout-pane">
        One pane
      </div>
      <div class="flayout-drag"></div>
      <div class="flayout-pane">
        Another pane
      </div>
    </div>
  1. Initialize it with flayout.init() at any point of your app.
  <script>
    flayout.init();
  </script>

All this will be improved.

2.0.3

12 months ago

2.0.2

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago