Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

el-table-fixed-header

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

el-table-fixed-header

Fixed element table header when scrolling

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

element table fixed header directive

Vue 2.x npm npm-downloades license

Features

  • Fixed element's table header when scrolling

dependencies

Instalation

Using module bundlers

# install dependency
npm install --save el-table-fixed-header
// import on your project
import ElTableFixedHeader from 'el-table-fixed-header'
Vue.use(ElTableFixedHeader)

Browser

<body>
  <div id="app">
    <div id="wrapper-id">
      <el-table v-fixed-header="{startFixed: 230, container: '#wrapper-id'}"></el-table>
    </div>
  </div>
  <script src="https://unpkg.com/vue/dist/vue.js"></script>
  <script src="https://unpkg.com/el-table-fixed-header"></script>
  <script>
  Vue.use(ElTableFixedHeader.default);
  var app = new Vue({
    el: '#app',
    data: {
      message: 'Hello Vue!'
    }
  });
</script>
</body>

Usage

<div id="wrapper-id">
  <el-table v-fixed-header="{startFixed: 230, container: '#wrapper-id'}"></el-table>
</div>

Custom options

Defaults

  {
    startFixed: 0, // Distance from top of table to top of browser window when to start fix header
    container: '', // default is window, the scroll container, use document.querySelector to query the Element
  }

Demo

Code fixed-header_2

License

MIT

Keywords

FAQs

Package last updated on 21 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc