tbathiago / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

Integration with the DataTables Key Table #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

On the DataTables site there is a KeyTable plugin that allows you to
navigate through the table in the excel-like manner, and it can be
integrated with jEditable see
http://www.datatables.net/release-datatables/extras/KeyTable/editing.html.
Key Table in the current version cannot be integrated with dataTables Editable. 
It would be good to add new initalization parameter oKeyTable so key table can 
be associated to the plugin. Proposed method:

1. Add new parameter oKeyTable and pass key table instance to makeEditable call:

    var oTable = $('#example').dataTable();

    var keys = new KeyTable( {
        "table": document.getElementById('example'),
        "datatable": oTable
    } );

    oTable.makeEditable({ oKeyTable: keys});

2. If possible it would be good to have some compact/inline call syntax, e.g.:

     $('#example').dataTable().makeEditable({ 

                oKeyTable: new KeyTable( {
                    "table": document.getElementById('example'),
                    "datatable": oTable
            } );
     })

Original issue reported on code.google.com by joc...@gmail.com on 13 May 2011 at 7:01

GoogleCodeExporter commented 9 years ago

Original comment by joc...@gmail.com on 30 Sep 2011 at 9:45