We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to Build a smart div which changes to an input if the user double clicks it and changes back after the after the user has inserted some data.
So i tried this:
var ಠᴥಠ = { $cell: true, $type: 'span', $text: 'Text to change via input field', ondblclick: function () { this.$type = 'input'; }, onkeyup: function (e) { if(e.keyCode == 13) { this.text = this.value; this.type = 'div'; console.log(this.value); } } }
... well the first part was no problem to change this to an input field but now it doesnt change back leaving me with an input field.
Im not sure if this should work or not im new to cell.js.
The text was updated successfully, but these errors were encountered:
You're missing $'s.
this.text = this.value; this.type = 'div';
Should be
this.$text = this.value; this.$type = 'div';
Sorry, something went wrong.
No branches or pull requests
I tried to Build a smart div which changes to an input if the user double clicks it and changes back after the
after the user has inserted some data.
So i tried this:
... well the first part was no problem to change this to an input field but now it doesnt change back leaving me with an input field.
Im not sure if this should work or not im new to cell.js.
The text was updated successfully, but these errors were encountered: