1.2.4 • Published 3 years ago

table-fluid v1.2.4

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

table-fluid_v1 2

Table of contents

Quick start

Several quick start options are available:

<link rel="stylesheet" href=".../dist/css/table-fluid.css">
<script src=".../dist/js/table-fluid.js"></script>

<table class="table-fluid">
  <thead>
  ...
  </thead>
  <tbody>
  ...
  </tbody>
</table>
window.tableFluid('.table-fluid');

Best practises

  • Install with npm: npm install table-fluid
  • Create a folder table-fluid inside you js project directory
  • In the project directory table-fluid create file table-fluid.js
  • In the created file table-fluid.js add code:
// Import js from table-fluid
//=include .../node_modules/table-fluid/src/js/table-fluid.js
  • Create a folder table-fluid inside you scss project directory
  • In the project directory table-fluid create two files table-fluid.scss, _variables.scss
  • In the created file table-fluid.scss add:
@import 'variables';
@import '.../node_modules/table-fluid/src/scss/variables';
@import '.../node_modules/table-fluid/src/scss/table';
  • In the created file _variables.scss replace the values of the variables as you need (please see Default styles examples). All variables examples are inside the file:
.../node_modules/table-fluid/src/scss/_variables.scss
<link rel="stylesheet" href=".../css/table-fluid/table-fluid.css">
<script src=".../js/table-fluid/table-fluid.js"></script>

<table class="table-fluid">
  <thead>
  ...
  </thead>
  <tbody>
  ...
  </tbody>
</table>
window.tableFluid('.table-fluid');

Default styles examples

If you only use SCSS please add these variables to the created file _variables.scss in your project

// Table Head styles.
$th-bg-color: #a9a9a9;
$th-border-color-tb: #808080;
$th-border-color-rl: #808080;

// Table Body styles.
$td-border-color-tb: $th-bg-color;
$td-border-color-rl: $th-bg-color;

If you only use CSS please add these styles to your created CSS file. Note: for the latest version plugin

.table-fluid {
  /* Table Head style variables. */
  --th-bg-color: #a9a9a9;
  --th-border-color-tb: #808080;
  --th-border-color-rl: #808080;
  /* Style variables for tablet and mobile only. */
  --th-even-bg-color: #b1b1b1;
  --th-even-border-color-tb: #888888;
  --th-even-border-color-rl: #888888;

  /* Table Body style variables. */
  --td-border-color-tb: var(--th-bg-color);
  --td-border-color-rl: var(--th-bg-color);
}

Status

npm version License: MIT

What's included

Within the download you'll find the following directories and files, logically grouping common assets and providing compiled or source variations. You'll see something like this:

table-fluid/
└── dist/
    ├── css/
    │   ├── table-fluid.css
    │   ├── table-fluid.css.map
    ├── js/
    │   ├── table-fluid.js
    │   └── table-fluid.js.map
    src/
    └── js/
        ├── table-fluid.js
        scss/
        ├── _table.scss
        ├── _variables.scss
        └── table-fluid.scss

Bugs and feature requests

Have a bug or a feature request? Please first read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Versioning

See the Releases section of our GitHub project for changelogs for each release version.

Copyright and license

Code and documentation copyright 2021 the maestro888 Code released under the MIT License.

1.1.7

3 years ago

1.1.6

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.5

3 years ago

1.0.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.2.1

3 years ago

1.1.2

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