Skip to content

Commit

Permalink
Refactor #4391 - For ContextMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
ulasturann committed May 16, 2023
1 parent fd98078 commit c4abbf7
Show file tree
Hide file tree
Showing 8 changed files with 846 additions and 21 deletions.
158 changes: 158 additions & 0 deletions components/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -10217,6 +10217,14 @@
"type": "ReactNode",
"default": "",
"description": "Used to get the child elements of the component."
},
{
"name": "pt",
"optional": true,
"readonly": false,
"type": "ContextMenuPassThroughOptions",
"default": "",
"description": "Uses to pass attributes to DOM elements inside the component."
}
]
},
Expand Down Expand Up @@ -10252,6 +10260,156 @@
]
}
}
},
"interfaces": {
"description": "Defines the custom interfaces used by the module.",
"values": {
"ContextMenuPassThroughMethodOptions": {
"description": "Custom passthrough(pt) option method.",
"relatedProp": "",
"props": [
{
"name": "props",
"optional": false,
"readonly": false,
"type": "ContextMenuProps"
},
{
"name": "state",
"optional": false,
"readonly": false,
"type": "ContextMenuState"
},
{
"name": "context",
"optional": false,
"readonly": false,
"type": "ContextMenuContext"
}
],
"callbacks": []
},
"ContextMenuPassThroughOptions": {
"description": "Custom passthrough(pt) options.",
"relatedProp": "pt",
"props": [
{
"name": "root",
"optional": true,
"readonly": false,
"type": "ContextMenuPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the root's DOM element."
},
{
"name": "menu",
"optional": true,
"readonly": false,
"type": "ContextMenuPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the list's DOM element."
},
{
"name": "menuitem",
"optional": true,
"readonly": false,
"type": "ContextMenuPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the list item's DOM element."
},
{
"name": "action",
"optional": true,
"readonly": false,
"type": "ContextMenuPassThroughType<HTMLAttributes<HTMLAnchorElement>>",
"description": "Uses to pass attributes to the action's DOM element."
},
{
"name": "icon",
"optional": true,
"readonly": false,
"type": "ContextMenuPassThroughType<HTMLAttributes<HTMLSpanElement> | SVGProps<SVGSVGElement>>",
"description": "Uses to pass attributes to the icon's DOM element."
},
{
"name": "label",
"optional": true,
"readonly": false,
"type": "ContextMenuPassThroughType<HTMLAttributes<HTMLSpanElement>>",
"description": "Uses to pass attributes to the label's DOM element."
},
{
"name": "submenuIcon",
"optional": true,
"readonly": false,
"type": "ContextMenuPassThroughType<HTMLAttributes<HTMLSpanElement> | SVGProps<SVGSVGElement>>",
"description": "Uses to pass attributes to the submenu icon's DOM element."
},
{
"name": "separator",
"optional": true,
"readonly": false,
"type": "ContextMenuPassThroughType<HTMLAttributes<HTMLLIElement>>",
"description": "Uses to pass attributes to the separator's DOM element."
}
],
"callbacks": []
},
"ContextMenuState": {
"description": "Defines current inline state in ContextMenu component.",
"relatedProp": "",
"props": [
{
"name": "visible",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current visible state as a boolean."
},
{
"name": "reshow",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current reshow state as a boolean."
},
{
"name": "resetMenu",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current resetMenu state as a boolean."
},
{
"name": "attributeSelector",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current attributeSelector visible state as a string."
}
],
"callbacks": []
},
"ContextMenuContext": {
"description": "Defines current options in ContextMenu component.",
"relatedProp": "",
"props": [
{
"name": "active",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current active state of menuitem as a boolean."
}
],
"callbacks": []
}
}
},
"types": {
"description": "Defines the custom types used by the module.",
"values": {
"ContextMenuPassThroughType": {
"values": "PassThroughType<T, ContextMenuPassThroughMethodOptions>"
}
}
}
},
"csstransition": {
Expand Down
Loading

0 comments on commit c4abbf7

Please sign in to comment.