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

Added support for textarea element #38

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

Conversation

grefton
Copy link

@grefton grefton commented Jul 14, 2016

I added support for displaying "textarea" elements. I have not minified the .js file however as I'm unsure of that process.

Here's an additional example to use for displaying a textarea.

$("#businessRules").Tabledit({
  url: '',
  columns: {
    identifier: [0, 'ID'],
    editable: [
      [1, 'Vehicle Type', 'select', {"car": "Car", "truck": "Truck", "van": "Mini-van", "suv": "Sport Utility Vehicle"}],
      [2, 'Description', 'textarea', {rows: 4}]
    ]
  }
});

Here's an additional example to use for displaying a textarea.
$("#businessRules").Tabledit({
url: '',
columns: {
identifier: [0, 'ID'],
editable: [
[1, 'Vehicle Type', 'select', {"car": "Car", "truck": "Truck", "van":
"Mini-van", "suv": "Sport Utility Vehicle"}],
[2, 'Description', 'textarea', {rows: 4}]
]
}
});
@DiegoJArg
Copy link

Hi, I can't get this to work. when adding , 'textarea', {rows: 4} to the editable lines, it breaks any edition posibility.

@congthinh
Copy link

Hi, I can't get this to work. when adding , 'textarea', {rows: 4} to the editable lines, it breaks any edition posibility.

You should do something like this:
[4, 'summary', 'textarea', '{"rows": "4", "cols": "400", "maxlength": "2000", "wrap": "hard"}']

to get it done.

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.

3 participants