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: docs/src/content/guides/buttons.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
@@ -235,7 +235,7 @@ You can use the `onNextClick`, `onPreviousClick` and `onCloseClick` callbacks to
235
235
236
236
## Custom Buttons
237
237
238
-
You can add custom buttons using `onPopoverRendered` callback. This callback is called every time a popover is rendered. In the following example, we are adding a custom button that takes the user to the first step.
238
+
You can add custom buttons using `onPopoverRender` callback. This callback is called before the popover is rendered. In the following example, we are adding a custom button that takes the user to the first step.
239
239
240
240
241
241
<CodeSample
@@ -253,7 +253,7 @@ You can add custom buttons using `onPopoverRendered` callback. This callback is
253
253
align: 'start',
254
254
side: 'left',
255
255
title: 'More Control with Hooks',
256
-
description: 'You can use onPopoverRendered hook to modify the popover DOM. Here we are adding a custom button to the popover which takes the user to the first step.'
256
+
description: 'You can use onPopoverRender hook to modify the popover DOM. Here we are adding a custom button to the popover which takes the user to the first step.'
257
257
}
258
258
},
259
259
{
@@ -286,7 +286,7 @@ You can add custom buttons using `onPopoverRendered` callback. This callback is
286
286
// Get full control over the popover rendering.
287
287
// Here we are adding a custom button that takes
288
288
// user to the first step.
289
-
onPopoverRendered: (popover, { config, state }) => {
289
+
onPopoverRender: (popover, { config, state }) => {
Copy file name to clipboardExpand all lines: docs/src/content/guides/styling-popover.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
@@ -8,7 +8,7 @@ import { CodeSample } from "../../components/CodeSample.tsx";
8
8
9
9
You can either use the default class names and override the styles or you can pass a custom class name to the `popoverClass` option either globally or per step.
10
10
11
-
Alternatively, if want to modify the Popover DOM, you can use the `onPopoverRendered` callback to get the popover DOM element and do whatever you want with it.
11
+
Alternatively, if want to modify the Popover DOM, you can use the `onPopoverRender` callback to get the popover DOM element and do whatever you want with it before popover is rendered.
12
12
13
13
We have added a few examples below but have a look at the [theming section](/docs/theming#styling-popover) for detailed guide including class names to target etc.
14
14
@@ -155,7 +155,7 @@ Here is the CSS used for the above example:
155
155
align: 'start',
156
156
side: 'left',
157
157
title: 'More Control with Hooks',
158
-
description: 'You can use onPopoverRendered hook to modify the popover DOM. Here we are adding a custom button to the popover which takes the user to the first step.'
158
+
description: 'You can use onPopoverRender hook to modify the popover DOM. Here we are adding a custom button to the popover which takes the user to the first step.'
159
159
}
160
160
},
161
161
{
@@ -188,7 +188,7 @@ Here is the CSS used for the above example:
188
188
// Get full control over the popover rendering.
189
189
// Here we are adding a custom button that takes
190
190
// the user to the first step.
191
-
onPopoverRendered: (popover, { config, state }) => {
191
+
onPopoverRender: (popover, { config, state }) => {
Copy file name to clipboardExpand all lines: docs/src/content/guides/theming.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ Visit the [example page](/docs/styling-popover) for an example that modifies the
57
57
58
58
## Modifying Popover DOM
59
59
60
-
Alternatively, you can also use the `onPopoverRendered` hook to modify the popover DOM before it is displayed. The hook is called with the popover DOM as the first argument.
60
+
Alternatively, you can also use the `onPopoverRender` hook to modify the popover DOM before it is displayed. The hook is called with the popover DOM as the first argument.
0 commit comments