tagmanager icon indicating copy to clipboard operation
tagmanager copied to clipboard

Added readOnly option

Open jjwilliams opened this issue 12 years ago • 4 comments

This will make the input box readonly, and remove the tagCloseIcon from being rendered.

Fairly simple - I might be missing something. Wasn't sure if I should .attr('readonly', true) the field or disable the field. Readonly will still get posted, although I'm not sure why a tagManager's textbox would need to be posted back.

jjwilliams avatar Nov 02 '13 05:11 jjwilliams

Also I don't know if this is needed: opts.backspace = [];//clear out the ability to delete on backspace chars I guess I have visions of rogue browsers allowing users to type into readonly fields.

jjwilliams avatar Nov 02 '13 05:11 jjwilliams

Why show the input box at all if in read only mode?

johnnyshields avatar Nov 02 '13 05:11 johnnyshields

Good point, I could just hide it altogether. I'll look into that tomorrow.

jjwilliams42 avatar Nov 02 '13 05:11 jjwilliams42

Hid the textbox if readOnly

jjwilliams avatar Nov 03 '13 02:11 jjwilliams