This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Summary

Table view rendered using the SlickGrid javascript library.

SlickGrid is an advanced JavaScript grid/spreadsheet component.

This view accepts any non-empty rset. It uses introspection on the result set to compute column names and the proper way to display the cells.

It is highly configuration and accepts the same wealth of option than cubicweb.web.view.tableview.RsetTableView.

Example

To try it at the speed of light

Once your instance is running you can go to:

http://localhost:8080/view?rql=Any L, X WHERE X is CWUser, X login L&vid=slickgrid

That’s all. The rendered table uses the ‘slickgrid’ view.

Calling the slidgrid from your views

The simplest way is to call:

self._cw.wview('slickgrid', rset, 'null')

Options can be specified by class attributes:

  • displaycols, if not None, should be a list of rset’s columns to be displayed.
  • headers, if not None, should be a list of headers for the table’s columns. None values in the list will be replaced by computed column names.
  • cellvids, if not None, should be a dictionary with table column index as key and a view identifier as value, telling the view that should be used in the given column.

As well as SlickGrid specific option:

  • columns_options: a dictionary of SlickGrid column options

One can use:

class MyRsetGridView(RsetGridView):
    __regid__ = 'myslickgrid'
    headers = (_('first'), _('second'), _('third'))
    cellvids = {0: 'text', 1: 'inline', 2:'outofcontext'}
    columns_options = {0: {'sortable': False}}

self._cw.wview('myslickgrid', rset, 'null')

Note that the pagination is not working yet.

Release History

Release History

1.1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cubicweb-slickgrid-1.1.0.tar.gz (195.4 kB) Copy SHA256 Checksum SHA256 Source Sep 15, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting