File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
src/BootstrapBlazor/Components/Popover Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 22@inherits Tooltip
33@attribute [BootstrapModuleAutoLoader]
44
5- <span @attributes =" @AdditionalAttributes" class =" @ClassString" tabindex =" 0" id =" @Id"
6- data-bs-toggle =" popover" data-bs-original-title =" @Title"
7- data-bs-selector =" @Selector" data-bs-placement =" @PlacementString" data-bs-custom-class =" @CustomClassString"
8- data-bs-trigger =" @Trigger" data-bs-delay =" @Delay"
9- data-bs-offset =" @Offset" data-bs-fallbackPlacements =" @FallbackPlacementsString"
10- data-bs-html =" @HtmlString" data-bs-sanitize =" @SanitizeString" >
5+ <DynamicElement @attributes =" @AdditionalAttributes" TagName =" span"
6+ TriggerClick =" @TriggerClick" OnClick =" OnTriggerClick"
7+ class =" @ClassString" tabindex =" 0" id =" @Id"
8+ data-bs-toggle =" popover" data-bs-original-title =" @Title"
9+ data-bs-selector =" @Selector" data-bs-placement =" @PlacementString"
10+ data-bs-custom-class =" @CustomClassString"
11+ data-bs-trigger =" @Trigger" data-bs-delay =" @Delay"
12+ data-bs-offset =" @Offset" data-bs-fallbackPlacements =" @FallbackPlacementsString"
13+ data-bs-html =" @HtmlString" data-bs-sanitize =" @SanitizeString" >
1114 <CascadingValue Value =" this" IsFixed =" true" >
1215 @ChildContent
1316 @if (Template != null )
1720 </template >
1821 }
1922 </CascadingValue >
20- </span >
23+ </DynamicElement >
Original file line number Diff line number Diff line change @@ -30,10 +30,11 @@ public partial class Popover
3030
3131 private string ? _lastContent ;
3232
33- /// <summary>
34- /// <inheritdoc/>
35- /// </summary>
36- protected override string ? CustomClassString => CssBuilder . Default ( CustomClass )
33+ private string ? ClassString => CssBuilder . Default ( "bb-popover" )
34+ . AddClassFromAttributes ( AdditionalAttributes )
35+ . Build ( ) ;
36+
37+ private string ? CustomClassString => CssBuilder . Default ( CustomClass )
3738 . AddClass ( "shadow" , ShowShadow )
3839 . Build ( ) ;
3940
You can’t perform that action at this time.
0 commit comments