Giter VIP home page Giter VIP logo

datagrid.scroll's Introduction

datagrid.scroll

horizontal and vertical scrolling of ublabloo/datagrid. Table header fixed on vertical scrolling

Features

  • vertical scrolling. Only table body is scrolled. table header is fixed
  • horizontal scrolling. Header is iscrolled synchronously with table body
  • settings and groups actions are not scrolled
  • paging is not scrolled

How it is done

  • ublabloo/datagrid table header is hidden
  • ublabloo/datagrid group actions a settings are mirrored into a non-scrollable div (settings div). This div doesn't scroll neither horizontaly nor vertically.
  • ublabloo/datagrid column names and filters are mirrored into a new table (header table). It scrolls synchronously with table body.
  • ublabloo/datagrid paging is mirrored into a new paging (paging div). This div doesn't scroll neither horizontaly nor vertically.
  • clicks and key pressings are mirrored so original ublabloo/datagrid links and inputs receive appropriate events
  • white space wrapping is off
  • table layout is fixed. The column width is given by the widest column.

It's easy to use

<link rel="stylesheet" type="text/css" href="../bower_components/ublaboo-datagrid/assets/dist/datagrid.css">
<link rel="stylesheet" href="{$basePath}/css/datagrid.scroll.css" type="text/css" />
<script src="../bower_components/ublaboo-datagrid/assets/dist/datagrid.js"></script>
<script src="{$basePath}/js/datagrid.scroll.js" type="text/javascript"></script>
$.nette.init();
//
// this functions adds scrolling to grid with component name 'objednavkaDatagrid'
// - horizontal scrolling will be added if table width exceeds window width
// - vertical scrolling will be added if table exceeds window vertically 
//
datagrid_scroll('objednavkaDatagrid');
$.nette.init();
//
// this functions adds scrolling to grid with component name 'cenikVersionDatagrid'
// - horizontal scrolling will be added if table width exceeds window width
// - vertical scrolling will be added if table height exceeds specified maxHeight
//
datagrid_scroll('cenikVersionDatagrid', { tillEndOfPage:  false, maxHeight: 420});

datagrid.scroll's People

Contributors

janmottl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.