Skip to content

Commit

Permalink
doc: add more comments to element description
Browse files Browse the repository at this point in the history
  • Loading branch information
wes-goulet committed Jan 17, 2024
1 parent f78b31d commit 0529d7c
Show file tree
Hide file tree
Showing 5 changed files with 226 additions and 76 deletions.
24 changes: 21 additions & 3 deletions custom-elements.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
"kind": "class",
"description": "A simple side drawer custom element",
"name": "SideDrawer",
"cssParts": [
{
"description": "The underlying <dialog> element.",
"name": "dialog"
}
],
"slots": [
{
"description": "The content to go inside the drawer (the default slot)",
"name": ""
}
],
"members": [
{
"kind": "field",
Expand All @@ -21,18 +33,24 @@
"name": "close",
"type": {
"text": "CustomEvent"
}
},
"description": "Raised when the drawer is closed."
},
{
"name": "open",
"type": {
"text": "CustomEvent"
}
},
"description": "Raised when the drawer is opened."
}
],
"attributes": [
{
"name": "open"
"name": "open",
"type": {
"text": "boolean"
},
"description": "Add this attribute to open the drawer."
}
],
"superclass": {
Expand Down
Loading

0 comments on commit 0529d7c

Please sign in to comment.