Can help test!

Just ask.

Richard

On Fri, Dec 10, 2010 at 4:20 PM, Bruno Rocha <rochacbr...@gmail.com> wrote:

> 2010/12/10 Thadeus Burgess <thade...@thadeusb.com>
>
> I really enjoy working with DataTables. It is easy to use and extremely
>> configurable!
>>
>> Not only that, but it can load results from any JSON request, so you can
>> handle filtering, ordering, and pagination in your queries on the server.
>>
>
> I am writing a new plugin for datatables, I want to have many features of
> the datatables API available as PluginManager() attributes.
>
> This is already working for me now with VirtualFields and VirtualLabels,
> DetailTables etc, and uses JqueryUI ThemeRoller. (look the screenshot)
>
> I will add today the export feature (excel, csv, txt) and sorting/ordering.
>
> This works in this way:
>
> <code>
> plugins = PluginManager()
> datatable = plugins.datatable
>
> #a class which every methos became field, method docstring become field
> label
> datatable.virtualfields = Virtual()
>
> # if you dont want to use docstrings as labels, you can pass a dict
> datatable.virtuallabels = {'virtual.field1':T('label
> 1'),'virtual.field2':T('label 2')}
>
> #datasource can be query, set, rows, xml, json or an ajax callback
> datatable.datasource = db(db.table).select()
>
> #accepts the same attributes that SQLTABLE ('linkto', 'orderby' etc)
> datatable.headers='labels'
>
> #you can pass html attr
> datatable._class='datatable'
> datatable._width='100%'
>
> #function that returns the datatable html+JavaScript
> list = datatable.create()
>
> </code>
>
>
> I am testing and implementing every feature of DataTables API as I need to
> my project.
>
> Is there anybody interesting in contribute?
>
> --
>
> Bruno Rocha
> http://about.me/rochacbruno/bio
>

Reply via email to