You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/component-docs.json
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10852,7 +10852,7 @@
10852
10852
"name": "array"
10853
10853
},
10854
10854
"required": false,
10855
-
"description": "An array of menu item objects. `className` and `id` object keys are applied to the `li` DOM node. `divider` key can have a value of `top` or `bottom`. `rightIcon` and `leftIcon` are not actually `Icon` components, but prop objects that get passed to an `Icon` component. The `href` key will be added to the `a` and its default click event will be prevented. Here is a sample:\n```\n[{\n className: 'custom-li-class',\n divider: 'bottom',\n label: 'A Header',\n type: 'header'\n }, {\n href: 'http://sfdc.co/',\n id: 'custom-li-id',\n label: 'Has a value',\n leftIcon: {\n name: 'settings',\n category: 'utility'\n },\n rightIcon: {\n name: 'settings',\n category: 'utility'\n },\n type: 'item',\n value: 'B0'\n }, {\n type: 'divider'\n}]\n```"
10855
+
"description": "An array of menu item objects. `className` and `id` object keys are applied to the `li` DOM node. `divider` key can have a value of `top` or `bottom`. `rightIcon` and `leftIcon` are not actually `Icon` components, but prop objects that get passed to an `Icon` component. The `href` key will be added to the `a` and its default click event will be prevented. Here is a sample:\n```\n[{\n className: 'custom-li-class',\n divider: 'bottom',\n label: 'A Header',\n type: 'header'\n }, {\n href: 'http://sfdc.co/',\n id: 'custom-li-id',\n label: 'Has a value',\n leftIcon: {\n name: 'settings',\n category: 'utility'\n },\n rightIcon: {\n name: 'settings',\n category: 'utility'\n },\n type: 'item',\n value: 'B0'\n }, {\n tooltipContent: 'Displays a tooltip when hovered over with this content. The `tooltipMenuItem` prop must be set for this to work.'\n type: 'divider'\n}]\n```"
10856
10856
},
10857
10857
"style": {
10858
10858
"type": {
@@ -10908,6 +10908,13 @@
10908
10908
"required": false,
10909
10909
"description": "This prop is passed onto the triggering `Button`. It creates a tooltip with the content of the `node` provided."
10910
10910
},
10911
+
"tooltipMenuItem": {
10912
+
"type": {
10913
+
"name": "node"
10914
+
},
10915
+
"required": false,
10916
+
"description": "Accepts a `Tooltip` component to be used as the template for menu item tooltips that appear via the `tooltipContent` options object attribute. Must be present for `tooltipContent` to work"
Copy file name to clipboardExpand all lines: components/menu-dropdown/menu-dropdown.jsx
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -345,6 +345,7 @@ const propTypes = {
345
345
* type: 'item',
346
346
* value: 'B0'
347
347
* }, {
348
+
* tooltipContent: 'Displays a tooltip when hovered over with this content. The `tooltipMenuItem` prop must be set for this to work.'
348
349
* type: 'divider'
349
350
* }]
350
351
* ```
@@ -374,6 +375,10 @@ const propTypes = {
374
375
* This prop is passed onto the triggering `Button`. It creates a tooltip with the content of the `node` provided.
375
376
*/
376
377
tooltip: PropTypes.node,
378
+
/**
379
+
* Accepts a `Tooltip` component to be used as the template for menu item tooltips that appear via the `tooltipContent` options object attribute. Must be present for `tooltipContent` to work
380
+
*/
381
+
tooltipMenuItem: PropTypes.node,
377
382
/**
378
383
* CSS classes to be added to wrapping trigger `div` around the button.
379
384
*/
@@ -848,6 +853,7 @@ class MenuDropdown extends React.Component {
0 commit comments