-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My jtable extensions as separated files #73
Conversation
*Sorting: add support for sorting multiple columns *Footer: adds a footer row that allows to totalize columns *MasterchildEx: Builds master/child relations without the need of using 'display' prop on field. User control child table display by adding a 'childTable' prop to field as: childTable: function( parentRecord ) { return{ title: parentRecord.name + ' - Details', sorting: true, defaultSorting: 'date DESC', actions: { listAction: '/list_purchase_details&id_purchase=' + parentRecord.id }, fields: { date: { title: 'Date' }, total: { title: 'Total' } } } }
Thank you so much for your contributions. I'll merge it after my tests. |
I'm working on codeproject article (http://www.codeproject.com/Articles/277576/AJAX-based-CRUD-tables-using-ASP-NET-MVC-3-and-jTa) to update. I'll take a few days. I'll check and merge it (probably) this weekend. Since this is my first pull request, i'm a bit novice :) Thanks. |
Great article and lots of useful information at bottom discussions! I'm new at lesscss. Which compiller do you recommend? I tried Crunch Cheers! 2013/1/15 hikalkan notifications@github.com
|
Hi @gbisheimer, I'm using Web Essentials with Visual Studio, it automatically generates CSS when I change the less file. I coded my own application for merging js files from dev folder :) I will share it here (at the moment, I'm at work, I'll share when I go to home). |
I added builder to GitHub: https://github.com/hikalkan/jtable/tree/master/dev/build |
I reviewed your extensions. Included Spanish localization to v.2.0.1. Other extensions also nice. Thank you so much. Since this is first contribute to jTable, I must think how to include such contributes in jTable. So, at the moment, I think to create a 'plug-ins area' in jTable.org to include such extensions with it's author's name and documantation. Then I can include it to jTable's core code base if this extension is well documented and found usable by community. When I open 'plug-ins' page in jTable.org (I'll do it in a very short time), your codes will be the first plug-ins those I want to share with community if it's OK for you? |
I think it's a great idea to include a plug-ins area. I will write the documentation for my plug-ins shortly and share it with I tried to maintain your coding standard in the plugins (for example I've written a new plugin that I will share soon, that fixes the problem I Thank you for including my code on jtable. Looking forward to see that Cheers! |
Thank you so much for your contributions. Your codes really fallows same style of core jTable code. Also, they are coded very vell. So, it was not about that to not directly add them to jTable core extensions. I'll work to prepare such as plugins page. Also, options caching and retriving is one of the first area that I will work on. I think to allow to define a function for options, such as: options: function(data){ //can return url, object or array dynamically. Can get the record with data.record } I will cache only if returning URL is returned before. Also user can clear cache with data.clearCache(); I think this will solve many problems. |
Filters extension is far from finished, but its a starting point. Also included CSS changes for these plugins to work. As Reload and Filters adds a command button on table title, I needed to float some things to make it possible to stack buttons to the right of title bar.
I'll eventually add usage information for my plugins, but for now I'll write something about my masterchild.ex extension. To instantiate a child table, just add a new field to jtable ``` javascript`
|
Conflicts: dev/jquery.jtable.build.txt lib/localization/jquery.jtable.es.js
Conflicts: dev/extensions/jquery.jtable.form.template.js
Hi @gbisheimer, I am investigating your plug-ins. First one is multiple sorting. I examined code, It's OK. I want to merge it into jTable core sorting, instead of seperated extension. If it's OK for you, please change dev/jquery.jtable.sorting.js file according to your extension and send a merge request, I'll accept it.
I'm waiting for your pull request. Thanks a lot. |
Also added spanish localization script.