CodeEditor(placeholder="", max_len=16000, rows=4, language="python")
Example
from mirmod.controls import CodeEditor
@wob.receiver("value", "code", control=CodeEditor(placeholder="Enter your code here...", rows=10, language="python"))
def receive_code(self, code):
self.code = code
Parameters
| Name | Type | Description |
|---|---|---|
| placeholder | string | Placeholder text shown when the editor is empty. Default empty. |
| max_len | int | Maximum character length allowed. Default 16000. |
| rows | int | Number of visible rows in the editor. Default 4. |
| language | string | Syntax highlighting language. Default “python”. |