2.0.7 • Published 7 years ago

flextable v2.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

FlexTable

A cross-browser + platform, responsive solution to creating modern tables using Flexbox.

Why FlexTable?

FlexTable uses FlexBox to create modern & painless tables. Don't believe me? Try creating a table with fixed headers and a scrollbar. There are multiple ways to do it (see here) but they are a bit strange. With FlexTable, you can avoid setting min or max widths and let FlexBox do the heavy lifting. This solution has been thoroughly tested and is currently used in production on a medium-sized corporate application. And it's lightweight, currently tipping the scales around 3 kB.

Show Me a Demo

https://wcj3.github.io/FlexTable/

Install

npm install flextable

bower install flextable | bower install flextable-css

How to use

Format

<div class="flextable" data-color="light-blue">
    <div class="flextable__header flextable__header---fixed">
        <div class="flextable__row">
            <div><span>Column 1</span></div>
            <div><span>Column 2</span></div>
            <div><span>Super long Column 2, Super long Column 2</span></div>
        </div>
    </div>
    <div class="flextable__body flextable__body--fixed" data-max-height="3">
        <div class="flextable__row">
            <div>
                <span>Lorem ipsum dolor sit amet, </span>
            </div>
            <div>
                <span>Phasellus iaculis nisi est.</span>
            </div>
            <div>
                <span>Aliquam sit amet tortor sed sapien </span>
            </div>
        </div>
    </div>
</div>
More on flextable__row class

Each 'flextable__row' class is expected to have the following structure:

<div class="flextable__row">
    <div><span>Column 1</span></div>
    <div><span>Column 2</span></div>
    <div><span>Super long Column 2, Super long Column 2</span></div>
</div>

Setting max-height of body for fixed tables

Note: Only 3-6 is currently supported (300-600px)

.flextable--body-fixeddata-max-height='5'

Select preset color

Note: Only light-blue, red, & green are supported

<div class="flextable" data-color="red">
2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago