-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 feat(Tooltip): add
Text
parameter to simplify the use of displayi…
…ng text (#2295)
- Loading branch information
Showing
7 changed files
with
30 additions
and
48 deletions.
There are no files selected for viewing
20 changes: 4 additions & 16 deletions
20
docs/Masa.Blazor.Docs/Examples/components/tooltips/Alignment.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,25 @@ | ||
<div class="text-center d-flex align-center justify-space-around"> | ||
<MTooltip Left> | ||
<MTooltip Left Text="Left tooltip"> | ||
<ActivatorContent> | ||
<MButton Color="primary" Dark @attributes="@context.Attrs">Left</MButton> | ||
</ActivatorContent> | ||
<ChildContent> | ||
<span>Left tooltip</span> | ||
</ChildContent> | ||
</MTooltip> | ||
|
||
<MTooltip Top> | ||
<MTooltip Top Text="Top tooltip"> | ||
<ActivatorContent> | ||
<MButton Color="primary" Dark @attributes="@context.Attrs">Top</MButton> | ||
</ActivatorContent> | ||
<ChildContent> | ||
<span>Top tooltip</span> | ||
</ChildContent> | ||
</MTooltip> | ||
|
||
<MTooltip Bottom> | ||
<MTooltip Bottom Text="Bottom tooltip"> | ||
<ActivatorContent> | ||
<MButton Color="primary" Dark @attributes="@context.Attrs">Bottom</MButton> | ||
</ActivatorContent> | ||
<ChildContent> | ||
<span>Bottom tooltip</span> | ||
</ChildContent> | ||
</MTooltip> | ||
|
||
<MTooltip Right> | ||
<MTooltip Right Text="Right tooltip"> | ||
<ActivatorContent> | ||
<MButton Color="primary" Dark @attributes="@context.Attrs">Right</MButton> | ||
</ActivatorContent> | ||
<ChildContent> | ||
<span>Right tooltip</span> | ||
</ChildContent> | ||
</MTooltip> | ||
</div> |
15 changes: 3 additions & 12 deletions
15
docs/Masa.Blazor.Docs/Examples/components/tooltips/Usage.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,19 @@ | ||
<div class="text-center d-flex align-center justify-space-around"> | ||
<MTooltip Bottom> | ||
<MTooltip Bottom Text="Tooltip"> | ||
<ActivatorContent> | ||
<MButton Dark Color="primary" @attributes="@context.Attrs">Bottom</MButton> | ||
</ActivatorContent> | ||
<ChildContent> | ||
<span>Tooltip</span> | ||
</ChildContent> | ||
</MTooltip> | ||
|
||
<MTooltip Bottom> | ||
<MTooltip Bottom Text="Tooltip"> | ||
<ActivatorContent> | ||
<MIcon Dark Color="primary" @attributes="@context.Attrs">mdi-home</MIcon> | ||
</ActivatorContent> | ||
<ChildContent> | ||
<span>Tooltip</span> | ||
</ChildContent> | ||
</MTooltip> | ||
|
||
<MTooltip Bottom> | ||
<MTooltip Bottom Text="Tooltip"> | ||
<ActivatorContent> | ||
<span @attributes="@context.Attrs">This text has a tooltip</span> | ||
</ActivatorContent> | ||
<ChildContent> | ||
<span>Tooltip</span> | ||
</ChildContent> | ||
</MTooltip> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters