Skip to content

Commit

Permalink
#5639 for MegaMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Dec 22, 2023
1 parent 40e2989 commit bc61510
Show file tree
Hide file tree
Showing 6 changed files with 809 additions and 155 deletions.
37 changes: 36 additions & 1 deletion components/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -31600,6 +31600,14 @@
"default": "",
"description": "Icon of the submenu."
},
{
"name": "tabIndex",
"optional": true,
"readonly": false,
"type": "number",
"default": "0",
"description": "Index of the element in tabbing order."
},
{
"name": "unstyled",
"optional": true,
Expand All @@ -31612,7 +31620,34 @@
},
"callbacks": {
"description": "Defines callbacks that determine the behavior of the component based on a given condition or report the actions that the component takes.",
"values": []
"values": [
{
"name": "onFocus",
"parameters": [
{
"name": "event",
"optional": false,
"type": "SyntheticEvent<Element, Event>",
"description": "Browser event."
}
],
"returnType": "void",
"description": "Callback to invoke when menu receives focus."
},
{
"name": "onBlur",
"parameters": [
{
"name": "event",
"optional": false,
"type": "SyntheticEvent<Element, Event>",
"description": "Browser event."
}
],
"returnType": "void",
"description": "Callback to invoke when menu loses focus."
}
]
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions components/doc/megamenu/accessibilitydoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ export function AccessibilityDoc() {
</td>
<td>Moves focus to the last menuitem within the submenu.</td>
</tr>
<tr>
<td>
<i>any printable character</i>
</td>
<td>Moves focus to the menuitem whose label starts with the characters being typed.</td>
</tr>
</tbody>
</table>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/doc/megamenu/basicdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export function BasicDoc(props) {
items: [
[
{
label: 'Video 1',
items: [{ label: 'Video 1.1' }, { label: 'Video 1.2' }]
label: 'Tadic',
items: [{ label: 'Dzeko' }, { label: 'Symanzki' }]
},
{
label: 'Video 2',
Expand Down
Loading

0 comments on commit bc61510

Please sign in to comment.