gr2m/editable-table

Read-only or frozen columns

Closed this issue · 4 comments

manna commented

Hey @gr2m - cool project. Would be very nice to be able to configure some columns as editable and others as read only.

gr2m commented

Shouldn't that just work? If you put in text in a cell, it should be copied

manna commented

Yeah. I wanted to use editableTable.add to add new read-only rows to the end, while choosing their frozen values. This can be accomplished by adding the disabled keyword. e.g.:

<input name="name" placeholder="Joe Doe" autocomplete="off" disabled/>

and

editableTable.add({ name: "Joe", email: "joe@example.com" });

gr2m commented

Got it. Does that work for you? Can we close the issue?

manna commented

That works for me, thanks