Skip to content

Commit e18d8df

Browse files
authored
feat(blazorui): rename PreserveCalloutWidh parameter to FixedCalloutWidth in callouts #11507 (#11510)
1 parent cc68567 commit e18d8df

File tree

13 files changed

+45
-44
lines changed

13 files changed

+45
-44
lines changed

src/BlazorUI/Bit.BlazorUI/Components/Buttons/MenuButton/BitMenuButton.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ await _js.BitCalloutToggleCallout(
593593
headerId: "",
594594
footerId: "",
595595
setCalloutWidth: true,
596-
preserveCalloutWidth: false,
596+
fixedCalloutWidth: false,
597597
maxWindowWidth: 0);
598598
}
599599

src/BlazorUI/Bit.BlazorUI/Components/Inputs/CircularTimePicker/BitCircularTimePicker.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ await _js.BitCalloutToggleCallout(
551551
headerId: "",
552552
footerId: "",
553553
setCalloutWidth: false,
554-
preserveCalloutWidth: false,
554+
fixedCalloutWidth: false,
555555
maxWindowWidth: 0);
556556
}
557557

src/BlazorUI/Bit.BlazorUI/Components/Inputs/DatePicker/BitDatePicker.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ private async Task<bool> ToggleCallout()
14161416
headerId: "",
14171417
footerId: "",
14181418
setCalloutWidth: false,
1419-
preserveCalloutWidth: false,
1419+
fixedCalloutWidth: false,
14201420
maxWindowWidth: MAX_WIDTH);
14211421
}
14221422

src/BlazorUI/Bit.BlazorUI/Components/Inputs/DateRangePicker/BitDateRangePicker.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ private async Task<bool> ToggleCallout()
19391939
headerId: "",
19401940
footerId: "",
19411941
setCalloutWidth: false,
1942-
preserveCalloutWidth: false,
1942+
fixedCalloutWidth: false,
19431943
maxWindowWidth: MAX_WIDTH);
19441944
}
19451945

src/BlazorUI/Bit.BlazorUI/Components/Inputs/Dropdown/BitDropdown.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ private async Task ToggleCallout()
11871187
headerId: CalloutHeaderTemplate is not null ? _headerId : "",
11881188
footerId: CalloutFooterTemplate is not null ? _footerId : "",
11891189
setCalloutWidth: PreserveCalloutWidth is false,
1190-
preserveCalloutWidth: false,
1190+
fixedCalloutWidth: false,
11911191
maxWindowWidth: 0);
11921192
}
11931193

src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ await _js.BitCalloutToggleCallout(
535535
headerId: string.Empty,
536536
footerId: string.Empty,
537537
setCalloutWidth: false,
538-
preserveCalloutWidth: false,
538+
fixedCalloutWidth: false,
539539
maxWindowWidth: 0);
540540
}
541541

src/BlazorUI/Bit.BlazorUI/Components/Inputs/TimePicker/BitTimePicker.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ await _js.BitCalloutToggleCallout(
447447
headerId: string.Empty,
448448
footerId: string.Empty,
449449
setCalloutWidth: true,
450-
preserveCalloutWidth: false,
450+
fixedCalloutWidth: false,
451451
maxWindowWidth: 0);
452452
}
453453

src/BlazorUI/Bit.BlazorUI/Components/Navs/Breadcrumb/BitBreadcrumb.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ await _js.BitCalloutToggleCallout(
622622
headerId: "",
623623
footerId: "",
624624
setCalloutWidth: false,
625-
preserveCalloutWidth: false,
625+
fixedCalloutWidth: false,
626626
maxWindowWidth: 0);
627627
}
628628

src/BlazorUI/Bit.BlazorUI/Components/Navs/DropMenu/BitDropMenu.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ await _js.BitCalloutToggleCallout(
218218
headerId: "",
219219
footerId: "",
220220
setCalloutWidth: false,
221-
preserveCalloutWidth: false,
221+
fixedCalloutWidth: false,
222222
maxWindowWidth: 0);
223223
}
224224

src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.razor.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ public partial class BitCallout : BitComponentBase
5050
/// </summary>
5151
[Parameter] public BitDropDirection? Direction { get; set; }
5252

53+
/// <summary>
54+
/// Forces the callout to preserve its component's original width.
55+
/// </summary>
56+
[Parameter] public bool FixedCalloutWidth { get; set; }
57+
5358
/// <summary>
5459
/// The id of the footer element that renders at the end of the scrolling container of the callout contnet.
5560
/// </summary>
@@ -79,12 +84,7 @@ public partial class BitCallout : BitComponentBase
7984
[Parameter] public EventCallback<bool> OnToggle { get; set; }
8085

8186
/// <summary>
82-
/// Forces the callout to preserve its component's original width.
83-
/// </summary>
84-
[Parameter] public bool PreserveCalloutWidth { get; set; }
85-
86-
/// <summary>
87-
/// Forces the callout to set its content container width while openning based on the available space and actual content.
87+
/// Forces the callout to set its content container width while opening based on the available space and actual content.
8888
/// </summary>
8989
[Parameter] public bool SetCalloutWidth { get; set; }
9090

@@ -205,7 +205,7 @@ await _js.BitCalloutToggleCallout(
205205
headerId: HeaderId ?? "",
206206
footerId: FooterId ?? "",
207207
setCalloutWidth: SetCalloutWidth,
208-
preserveCalloutWidth: PreserveCalloutWidth,
208+
fixedCalloutWidth: FixedCalloutWidth,
209209
maxWindowWidth: MaxWindowWidth ?? 0);
210210

211211
await OnToggle.InvokeAsync(IsOpen);

0 commit comments

Comments
 (0)