npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

table-fluid

v1.2.4

Published

Responsive Tables JavaScript Plugin

Downloads

7

Readme

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.