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
* Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly` [docs]
29
+
* Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`.
* Object: item is object with following keys available as column configuration:
54
54
* - key (required)(String) - define column name equal to item key.
55
55
* - 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.
56
-
* - _props (Object) - adds classes to all cels in column, ex. _props: { scope: 'col', className: 'custom-class' },
56
+
* - _props (Object) - adds classes to all cels in column, ex. `_props: { scope: 'col', className: 'custom-class' }`,
57
57
* - _style (Object) - adds styles to the column header (useful for defining widths)
* Array of objects, where each object represents one item - row in table. Additionally, you can add style classes to each row by passing them by '_props' key and to single cell by '_cellProps'.
Copy file name to clipboardExpand all lines: packages/docs/content/api/CChart.api.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ import CChart from '@coreui/react-chartjs/src/CChart'
10
10
|**className**| A string of all className you want applied to the base component. |`string`| - |
11
11
|**customTooltips**| Enables custom html based tooltips instead of standard tooltips. |`boolean`| true |
12
12
|**data**| The data object that is passed into the Chart.js chart (more info). |`ChartData<keyof ChartTypeRegistry, (number`\|`ScatterDataPoint`\|`BubbleDataPoint)[], unknown>`\|`((canvas: HTMLCanvasElement) => ChartData<...>)`| - |
13
-
|**fallbackContent**| A fallback for when the canvas cannot be rendered. Can be used for accessible chart descriptions.<br/><br/>{@linkhttps://www.chartjs.org/docs/latest/general/accessibility.html More Info}|`React.ReactNode`| - |
13
+
|**fallbackContent**| A fallback for when the canvas cannot be rendered. Can be used for accessible chart descriptions. |`React.ReactNode`| - |
14
14
|**getDatasetAtEvent**| Proxy for Chart.js getDatasetAtEvent. Calls with dataset and triggering event. |`(dataset: InteractionItem[], event: React.MouseEvent<HTMLCanvasElement>) => void`| - |
15
15
|**getElementAtEvent**| Proxy for Chart.js getElementAtEvent. Calls with single element array and triggering event. |`(element: InteractionItem[], event: React.MouseEvent<HTMLCanvasElement>) => void`| - |
16
16
|**getElementsAtEvent**| Proxy for Chart.js getElementsAtEvent. Calls with element array and triggering event. |`(elements: InteractionItem[], event: React.MouseEvent<HTMLCanvasElement>) => void`| - |
17
17
|**height**| Height attribute applied to the rendered canvas. |`number`| 150 |
18
18
|**id**| ID attribute applied to the rendered canvas. |`string`| - |
19
-
|**options**| The options object that is passed into the Chart.js chart.<br/><br/>{@linkhttps://www.chartjs.org/docs/latest/general/options.html More Info}|`_DeepPartialObject<CoreChartOptions<keyof ChartTypeRegistry> & ElementChartOptions<keyof ChartTypeRegistry> & PluginChartOptions<...> & DatasetChartOptions<...> & ScaleChartOptions<...>>`| - |
20
-
|**plugins**| The plugins array that is passed into the Chart.js chart (more info)<br/><br/>{@linkhttps://www.chartjs.org/docs/latest/developers/plugins.html More Info}|`Plugin<keyof ChartTypeRegistry, AnyObject>[]`|[]|
19
+
|**options**| The options object that is passed into the Chart.js chart. |`_DeepPartialObject<CoreChartOptions<keyof ChartTypeRegistry> & ElementChartOptions<keyof ChartTypeRegistry> & PluginChartOptions<...> & DatasetChartOptions<...> & ScaleChartOptions<...>>`| - |
20
+
|**plugins**| The plugins array that is passed into the Chart.js chart (more info) |`Plugin<keyof ChartTypeRegistry, AnyObject>[]`|[]|
21
21
|**redraw**| If true, will tear down and redraw chart on all updates. |`boolean`| false |
22
22
|**type**| Chart.js chart type. |`{'line'`\|`'bar'`\|`'radar'`\|`'doughnut'`\|`'polarArea'`\|`'bubble'`\|`'pie'`\|`'scatter'}`| bar |
23
23
|**width**| Width attribute applied to the rendered canvas. |`number`| 300 |
Copy file name to clipboardExpand all lines: packages/docs/content/api/CCharts.api.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ import CChartBar from '@coreui/react-chartjs/src/CCharts'
10
10
|**className**| A string of all className you want applied to the base component. |`string`| - |
11
11
|**customTooltips**| Enables custom html based tooltips instead of standard tooltips. |`boolean`| true |
12
12
|**data**| The data object that is passed into the Chart.js chart (more info). |`ChartData<keyof ChartTypeRegistry, (number`\|`ScatterDataPoint`\|`BubbleDataPoint)[], unknown>`\|`((canvas: HTMLCanvasElement) => ChartData<...>)`| - |
13
-
|**fallbackContent**| A fallback for when the canvas cannot be rendered. Can be used for accessible chart descriptions.<br/><br/>{@linkhttps://www.chartjs.org/docs/latest/general/accessibility.html More Info}|`React.ReactNode`| - |
13
+
|**fallbackContent**| A fallback for when the canvas cannot be rendered. Can be used for accessible chart descriptions. |`React.ReactNode`| - |
14
14
|**getDatasetAtEvent**| Proxy for Chart.js getDatasetAtEvent. Calls with dataset and triggering event. |`(dataset: InteractionItem[], event: React.MouseEvent<HTMLCanvasElement>) => void`| - |
15
15
|**getElementAtEvent**| Proxy for Chart.js getElementAtEvent. Calls with single element array and triggering event. |`(element: InteractionItem[], event: React.MouseEvent<HTMLCanvasElement>) => void`| - |
16
16
|**getElementsAtEvent**| Proxy for Chart.js getElementsAtEvent. Calls with element array and triggering event. |`(elements: InteractionItem[], event: React.MouseEvent<HTMLCanvasElement>) => void`| - |
17
17
|**height**| Height attribute applied to the rendered canvas. |`number`| 150 |
18
18
|**id**| ID attribute applied to the rendered canvas. |`string`| - |
19
-
|**options**| The options object that is passed into the Chart.js chart.<br/><br/>{@linkhttps://www.chartjs.org/docs/latest/general/options.html More Info}|`_DeepPartialObject<CoreChartOptions<keyof ChartTypeRegistry> & ElementChartOptions<keyof ChartTypeRegistry> & PluginChartOptions<...> & DatasetChartOptions<...> & ScaleChartOptions<...>>`| - |
20
-
|**plugins**| The plugins array that is passed into the Chart.js chart (more info)<br/><br/>{@linkhttps://www.chartjs.org/docs/latest/developers/plugins.html More Info}|`Plugin<keyof ChartTypeRegistry, AnyObject>[]`| - |
19
+
|**options**| The options object that is passed into the Chart.js chart. |`_DeepPartialObject<CoreChartOptions<keyof ChartTypeRegistry> & ElementChartOptions<keyof ChartTypeRegistry> & PluginChartOptions<...> & DatasetChartOptions<...> & ScaleChartOptions<...>>`| - |
20
+
|**plugins**| The plugins array that is passed into the Chart.js chart (more info) |`Plugin<keyof ChartTypeRegistry, AnyObject>[]`| - |
21
21
|**redraw**| If true, will tear down and redraw chart on all updates. |`boolean`| false |
22
22
|**width**| Width attribute applied to the rendered canvas. |`number`| 300 |
23
23
|**wrapper**| Put the chart into the wrapper div element. |`boolean`| true |
Copy file name to clipboardExpand all lines: packages/docs/content/api/CCol.api.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ import CCol from '@coreui/react/src/components/grid/CCol'
8
8
| Property | Description | Type | Default |
9
9
| --- | --- | --- | --- |
10
10
|**className**| A string of all className you want applied to the base component. |`string`| - |
11
-
|**lg**| The number of columns/offset/order on large devices (<1200px).|`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
12
-
|**md**| The number of columns/offset/order on medium devices (<992px).|`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
13
-
|**sm**| The number of columns/offset/order on small devices (<768px).|`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
14
-
|**xl**| The number of columns/offset/order on X-Large devices (<1400px).|`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
15
-
|**xs**| The number of columns/offset/order on extra small devices (<576px).|`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
11
+
|**lg**| The number of columns/offset/order on large devices (\<1200px). |`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
12
+
|**md**| The number of columns/offset/order on medium devices (\<992px). |`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
13
+
|**sm**| The number of columns/offset/order on small devices (\<768px). |`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
14
+
|**xl**| The number of columns/offset/order on X-Large devices (\<1400px). |`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
15
+
|**xs**| The number of columns/offset/order on extra small devices (\<576px). |`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
16
16
|**xxl**| The number of columns/offset/order on XX-Large devices (≥1400px). |`{ 'auto'`\|`number`\|`string`\|`boolean`\|`{ span: 'auto'`\|`number`\|`string`\|`boolean }`\|`{ offset: number`\|`string }`\|`{ order: 'first'`\|`'last'`\|`number`\|`string }}`| - |
Copy file name to clipboardExpand all lines: packages/docs/content/api/CFormInput.api.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ import CFormInput from '@coreui/react/src/components/form/CFormInput'
18
18
|**invalid**| Set component validation state to invalid. |`boolean`| - |
19
19
|**label****_4.2.0+_**| Add a caption for a component. |`ReactNode`| - |
20
20
|**onChange**| Method called immediately after the `value` prop changes. |`ChangeEventHandler<HTMLInputElement>`| - |
21
-
|**plainText**| Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`|`boolean`| - |
21
+
|**plainText**| Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`.|`boolean`| - |
22
22
|**readOnly**| Toggle the readonly state for the component. |`boolean`| - |
23
23
|**size**| Size the component small or large. |`'sm'`\|`'lg'`| - |
24
24
|**text****_4.2.0+_**| Add helper text to the component. |`ReactNode`| - |
0 commit comments