Skip to content

Commit e125a5b

Browse files
committed
fix(docs): improve API
1 parent 7dca9d0 commit e125a5b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

trame_code/widgets/code.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
"""Module compatible with vue2 and vue3. To use it, you need to install **trame-code**"""
12
from trame_client.widgets.core import AbstractElement
23
from .. import module
34

5+
__all__ = [
6+
"Editor",
7+
]
8+
49

510
class HtmlElement(AbstractElement):
611
def __init__(self, _elem_name, children=None, **kwargs):
@@ -11,6 +16,23 @@ def __init__(self, _elem_name, children=None, **kwargs):
1116

1217
# Expose your vue component(s)
1318
class Editor(HtmlElement):
19+
"""
20+
Monaco Editor component
21+
22+
Properties:
23+
24+
:param options:
25+
:param value:
26+
:param theme:
27+
:param language:
28+
:param textmate:
29+
30+
Events:
31+
32+
:param input:
33+
34+
"""
35+
1436
def __init__(self, **kwargs):
1537
super().__init__(
1638
"vs-editor",

0 commit comments

Comments
 (0)