1.0.5 • Published 3 years ago

el-table-fixed-scrollbar v1.0.5

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

element table fixed bottom scrollbar directive

Vue 2.x npm npm-downloades license

dependencies

Instalation

Using module bundlers

# install dependency
npm install --save el-table-fixed-scrollbar
// import on your project (less then 1KB gziped)
import ElTableFixedScrollbar from 'el-table-fixed-scrollbar'
Vue.use(ElTableFixedScrollbar)

Browser

<body>
  <div id="app">
    <div id="wrapper-id">
      <el-table v-fixed-bottom-scrollbar="{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-scrollbar"></script>
  <script>
  Vue.use(ElTableFixedScrollbar.default);
  var app = new Vue({
    el: '#app',
    data: {
      message: 'Hello Vue!'
    }
  });
</script>
</body>

Usage

<div id="wrapper-id">
  <el-table v-fixed-bottom-scrollbar="{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 scrollbar
    container: '', // default is window, the scroll container, use document.querySelector to query the Element
  }

Demo

Code

fixedBottom

License

MIT

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago