Skip to content
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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sharadsoni
Copy link

@sharadsoni sharadsoni commented Jan 5, 2018

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();

Textarea: 
              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],
                            ]
                    } 
                });
              3. $('.multiSelect').multiSelect();
@DiegoJArg
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants