Skip to content

Commit ec9b7f7

Browse files
wimsoetens-cmdWim Soetens
andauthored
Create a syncWidth parameter for the Popup Toggle Async function (#2461)
Co-authored-by: Wim Soetens <wim.soetens@uzgent.be>
1 parent 15b80de commit ec9b7f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Radzen.Blazor/Rendering/Popup.razor

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
/// </summary>
6262
/// <param name="target">The target element reference.</param>
6363
/// <param name="disableSmartPosition">Whether to disable smart positioning.</param>
64-
public async Task ToggleAsync(ElementReference target, bool disableSmartPosition = false)
64+
/// <param name="syncWidth">Whether to synchronize the width of the popup with the target element.</param>
65+
public async Task ToggleAsync(ElementReference target, bool disableSmartPosition = false, bool syncWidth = false)
6566
{
6667
open = !open;
6768
this.target = target;
@@ -73,7 +74,7 @@
7374
"Radzen.openPopup",
7475
target,
7576
GetId(),
76-
false,
77+
syncWidth,
7778
null,
7879
null,
7980
null,

0 commit comments

Comments
 (0)