morgan / kohana-datatables Goto Github PK
View Code? Open in Web Editor NEWKohana support (Database, ORM, ORM-REST, Dispatch) for the ever so popular jQuery table plugin, DataTables. This is a wrapper for Paginate.
License: MIT License
Kohana support (Database, ORM, ORM-REST, Dispatch) for the ever so popular jQuery table plugin, DataTables. This is a wrapper for Paginate.
License: MIT License
Paginate needs a new search total count property. This is in reference to @eblount pull request: morgan/kohana-paginate#1
Hi,
I am working with the Kohana ORM, and some of my models have belongs_to and has_many relationships.
When I build my rows, I can fetch the relationships and add them to the view, the problem is that it won't work with sorting / searching in server side processing, since these columns aren't actually columns of my ORM database table.
I was just wondering if you have an idea of how to address this problem...?
Hi (again and sorry for keeping posting issues :)
Is there a way to achieve this with your module ?
http://datatables.net/release-datatables/examples/server_side/ids.html
Thank you for this excellent module!
However I got error (as subject) when there is no iSortCol_
parameter.
Controller:
$paginate = Paginate::factory($posts);
$datatables = DataTables::factory($paginate)->request($this->request)->execute();
foreach ($datatables as $post) {
$datatables->add_row($post->id, $post->title);
}
echo $datatables->render();
Javascript:
$('#posts').dataTable({
'bProcessing': true,
'bServerSide': true,
'sAjaxSource': '/post/json.php'
})
Hi,
I figured out that individual column search not working,
oTable.fnFilter('test',2);
I scan through your code, but haven't found appropriate code for it.
maybe it just ignore
sSearch_2 "test"
I started to edit your paginate & datatable module, but haven't finished yet.
Hope You also working on it.
Thanks, It's great modules anyway.
Anang
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.