Skip to content

Commit ce95560

Browse files
committed
Add full code for the render method for completeness
1 parent 9323a50 commit ce95560

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/source/examples/Widget Custom.ipynb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,11 @@
467467
" this._emailInput.value = '[email protected]';\n",
468468
" this._emailInput.disabled = true;\n",
469469
" this.el.appendChild(this._emailInput);\n",
470+
" \n",
471+
" this.el.classList.add('custom-widget');\n",
472+
"\n",
473+
" this.value_changed();\n",
474+
" this.model.on('change:value', this.value_changed, this);\n",
470475
"},\n",
471476
"```"
472477
]

0 commit comments

Comments
 (0)