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: packages/docs/content/api/CDropdown.api.mdx
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,13 @@ import CDropdown from '@coreui/react/src/components/dropdown/CDropdown'
50
50
</tr>
51
51
<tr>
52
52
<tdcolSpan="3">
53
-
<p>Configures automatic closing behavior for the React Dropdown: - <code>{`true`}</code> - Close on clicks inside or outside of the React Dropdown Menu. - <code>{`false`}</code> - Disable auto-close; manually call <code>{`hide`}</code> or <code>{`toggle`}</code> (also not closed by <code>{`Escape`}</code>). - <code>{`'inside'`}</code> - Close only when clicking inside the React Dropdown Menu. - <code>{`'outside'`}</code> - Close only when clicking outside the React Dropdown Menu.</p>
53
+
<p>Configures automatic closing behavior for the React Dropdown:</p>
54
+
<ul>
55
+
<li><code>{`true`}</code> - Close on clicks inside or outside of the React Dropdown Menu.</li>
56
+
<li><code>{`false`}</code> - Disable auto-close; manually call <code>{`hide`}</code> or <code>{`toggle`}</code> (also not closed by <code>{`Escape`}</code>).</li>
57
+
<li><code>{`'inside'`}</code> - Close only when clicking inside the React Dropdown Menu.</li>
58
+
<li><code>{`'outside'`}</code> - Close only when clicking outside the React Dropdown Menu.</li>
59
+
</ul>
54
60
<JSXDocscode={`// Close only when user clicks outside of the menu
Copy file name to clipboardExpand all lines: packages/docs/content/api/CFocusTrap.api.mdx
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,12 @@ import CFocusTrap from '@coreui/react/src/components/focus-trap/CFocusTrap'
43
43
<tr>
44
44
<tdcolSpan="3">
45
45
<p>Single React element that renders a DOM node and forwards refs properly. The focus trap will be applied to this element and all its focusable descendants.<br />
46
-
Requirements: - Must be a single ReactElement (not an array or fragment) - Must forward the ref to a DOM element - Should contain focusable elements for proper trap behavior</p>
46
+
Requirements:</p>
47
+
<ul>
48
+
<li>Must be a single ReactElement (not an array or fragment)</li>
49
+
<li>Must forward the ref to a DOM element</li>
50
+
<li>Should contain focusable elements for proper trap behavior</li>
Copy file name to clipboardExpand all lines: packages/docs/content/api/CPopover.api.mdx
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,12 @@ import CPopover from '@coreui/react/src/components/popover/CPopover'
42
42
</tr>
43
43
<tr>
44
44
<tdcolSpan="3">
45
-
<p>Defines the container element to which the React Popover is appended. Accepts: - A DOM element (<code>{`HTMLElement`}</code> or <code>{`DocumentFragment`}</code>) - A function that returns a single element - <code>{`null`}</code> (defaults to <code>{`document.body`}</code>)</p>
45
+
<p>Defines the container element to which the React Popover is appended. Accepts:</p>
46
+
<ul>
47
+
<li>A DOM element (<code>{`HTMLElement`}</code> or <code>{`DocumentFragment`}</code>)</li>
48
+
<li>A function that returns a single element</li>
49
+
<li><code>{`null`}</code> (defaults to <code>{`document.body`}</code>)</li>
@@ -63,7 +68,11 @@ import CPopover from '@coreui/react/src/components/popover/CPopover'
63
68
</tr>
64
69
<tr>
65
70
<tdcolSpan="3">
66
-
<p>Delay (in milliseconds) before showing or hiding the React Popover. - If a number is provided, that delay applies to both "show" and "hide". - If an object is provided, use separate values for "show" and "hide".</p>
71
+
<p>Delay (in milliseconds) before showing or hiding the React Popover.</p>
72
+
<ul>
73
+
<li>If a number is provided, that delay applies to both "show" and "hide".</li>
74
+
<li>If an object is provided, use separate values for "show" and "hide".</li>
75
+
</ul>
67
76
<JSXDocscode={`// Delays 300ms on both show and hide
68
77
<CPopover delay={300}>...</CPopover>
69
78
@@ -178,7 +187,11 @@ import CPopover from '@coreui/react/src/components/popover/CPopover'
178
187
</tr>
179
188
<tr>
180
189
<tdcolSpan="3">
181
-
<p>Controls the visibility of the React Popover. - <code>{`true`}</code> shows the popover. - <code>{`false`}</code> hides the popover.</p>
190
+
<p>Controls the visibility of the React Popover.</p>
191
+
<ul>
192
+
<li><code>{`true`}</code> shows the popover.</li>
193
+
<li><code>{`false`}</code> hides the popover.</li>
Copy file name to clipboardExpand all lines: packages/docs/content/api/CTable.api.mdx
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,14 @@ import CTable from '@coreui/react/src/components/table/CTable'
102
102
</tr>
103
103
<tr>
104
104
<tdcolSpan="3">
105
-
<p>Prop for table columns configuration. If prop is not defined, table will display columns based on the first item keys, omitting keys that begins with underscore (e.g. '<em>props')
106
-
In columns prop each array item represents one column. Item might be specified in two ways: String: each item define column name equal to item value. Object: item is object with following keys available as column configuration: - key (required)(String) - define column name equal to item key. - label (String) - define visible label of column. If not defined, label will be generated automatically based on column name, by converting kebab-case and snake</em>case to individual words and capitalization of each word. - _props (Object) - adds classes to all cels in column, ex. <code>{`_props: { scope: 'col', className: 'custom-class' }`}</code>, - _style (Object) - adds styles to the column header (useful for defining widths)</p>
105
+
<p>Prop for table columns configuration. If prop is not defined, table will display columns based on the first item keys, omitting keys that begins with underscore (e.g. '_props')<br />
106
+
In columns prop each array item represents one column. Item might be specified in two ways: String: each item define column name equal to item value. Object: item is object with following keys available as column configuration:</p>
107
+
<ul>
108
+
<li>key (required)(String) - define column name equal to item key.</li>
109
+
<li>label (String) - define visible label of column. If not defined, label will be generated automatically based on column name, by converting kebab-case and snake_case to individual words and capitalization of each word.</li>
110
+
<li>_props (Object) - adds classes to all cels in column, ex. <code>{`_props: { scope: 'col', className: 'custom-class' }`}</code>,</li>
111
+
<li>_style (Object) - adds styles to the column header (useful for defining widths)</li>
Copy file name to clipboardExpand all lines: packages/docs/content/api/CTabs.api.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,8 @@ import CTabs from '@coreui/react/src/components/tabs/CTabs'
60
60
<tdcolSpan="3">
61
61
<p>Callback fired when the active tab changes.</p>
62
62
<ul>
63
-
<li>In controlled mode (<code>{`activeItemKey`}</code> provided), you must update <code>{`activeItemKey`}</code> yourself based on the value received. - In uncontrolled mode, this callback is called after internal state updates.</li>
63
+
<li>In controlled mode (<code>{`activeItemKey`}</code> provided), you must update <code>{`activeItemKey`}</code> yourself based on the value received.</li>
64
+
<li>In uncontrolled mode, this callback is called after internal state updates.</li>
Copy file name to clipboardExpand all lines: packages/docs/content/api/CTooltip.api.mdx
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,12 @@ import CTooltip from '@coreui/react/src/components/tooltip/CTooltip'
42
42
</tr>
43
43
<tr>
44
44
<tdcolSpan="3">
45
-
<p>Appends the React Tooltip to a specific element instead of the default <code>{`document.body`}</code>. You may pass: - A DOM element (<code>{`HTMLElement`}</code> or <code>{`DocumentFragment`}</code>) - A function that returns a single element - <code>{`null`}</code></p>
45
+
<p>Appends the React Tooltip to a specific element instead of the default <code>{`document.body`}</code>. You may pass:</p>
46
+
<ul>
47
+
<li>A DOM element (<code>{`HTMLElement`}</code> or <code>{`DocumentFragment`}</code>)</li>
@@ -63,7 +68,11 @@ import CTooltip from '@coreui/react/src/components/tooltip/CTooltip'
63
68
</tr>
64
69
<tr>
65
70
<tdcolSpan="3">
66
-
<p>The delay (in milliseconds) before showing or hiding the React Tooltip. - If provided as a number, the delay is applied to both "show" and "hide". - If provided as an object, it should have distinct "show" and "hide" values.</p>
71
+
<p>The delay (in milliseconds) before showing or hiding the React Tooltip.</p>
72
+
<ul>
73
+
<li>If provided as a number, the delay is applied to both "show" and "hide".</li>
74
+
<li>If provided as an object, it should have distinct "show" and "hide" values.</li>
75
+
</ul>
67
76
<JSXDocscode={`// Delays 300ms on both show and hide
68
77
<CTooltip delay={300}>...</CTooltip>
69
78
@@ -168,7 +177,11 @@ import CTooltip from '@coreui/react/src/components/tooltip/CTooltip'
168
177
</tr>
169
178
<tr>
170
179
<tdcolSpan="3">
171
-
<p>Controls the visibility of the React Tooltip. - <code>{`true`}</code> to show the tooltip. - <code>{`false`}</code> to hide the tooltip.</p>
180
+
<p>Controls the visibility of the React Tooltip.</p>
181
+
<ul>
182
+
<li><code>{`true`}</code> to show the tooltip.</li>
183
+
<li><code>{`false`}</code> to hide the tooltip.</li>
0 commit comments