jquery-tabledit icon indicating copy to clipboard operation
jquery-tabledit copied to clipboard

Implement 'TEXTAREA' and 'MULTI-SELECT' in Table Edit.

Open sharadsoni opened this issue 8 years ago • 1 comments

Textarea:

  1. You guys need to add three parameters while defining Tabledit as below:
$('#userListTabledit').Tabledit({
.......................................................,
columns: {
        identifier: [0, 'Id'],
            editable: [
                        [1, 'userAddress', 'textarea'],
            ]
    } 
});

Multi-Select:

  1. For Implement Multi-Select you guys need to import one external library of jquery multi-select [ https://github.com/mysociety/jquery-multi-select ].

  2. You guys need to add four parameters while defining Tabledit as below:

$('#userListTabledit').Tabledit({
.......................................................,
columns: {
        identifier: [0, 'Id'],
            editable: [
                        [1, 'hobbies', 'multiselect', hobbiesJson],
            ]
    } 
});

$('.multiSelect').multiSelect();

sharadsoni avatar Jan 05 '18 12:01 sharadsoni

hi, I cant get textarea to work in chrome

VM28455:1 Uncaught SyntaxError: Unexpected token e in JSON at position 1 at JSON.parse () at Function.n.parseJSON (jquery.min.js:4) at HTMLTableCellElement. (jquery.tabledit.js:130) at Function.each (jquery.min.js:2) at n.fn.init.each (jquery.min.js:2) at Object.editable (jquery.tabledit.js:112) at n.fn.init.$.fn.Tabledit (jquery.tabledit.js:418) at HTMLDocument. (admin_analisis.php:17) at j (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2)

DiegoJArg avatar Aug 15 '18 12:08 DiegoJArg