-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mudblazor): set For and HelperText on form fields
Refs: BLOCKLY-T-2
- Loading branch information
Showing
5 changed files
with
6 additions
and
24 deletions.
There are no files selected for viewing
5 changes: 1 addition & 4 deletions
5
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudCutBlockForm.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,7 +1,4 @@ | ||
@inherits CutBlockForm<MudBlazorBlocklyFormOptions> | ||
<MudItem> | ||
<MudTextField @bind-Value="@Block.ButtonText" Label="@LocalizationProvider["Button text"]" /> | ||
<MudTooltip Text="@LocalizationProvider["Text on button when block rendered in preview list mode"]"> | ||
<MudIconButton Class="mx-2" Icon="@Icons.Material.Outlined.Info" /> | ||
</MudTooltip> | ||
<MudTextField @bind-Value="@Block.ButtonText" For="() => Block.ButtonText" Label="@LocalizationProvider["Button text"]" HelperText="@LocalizationProvider["Text on button when block rendered in preview list mode"]"/> | ||
</MudItem > |
5 changes: 1 addition & 4 deletions
5
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudIFrameBlockForm.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
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
5 changes: 1 addition & 4 deletions
5
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudTwitchBlockForm.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,9 +1,6 @@ | ||
@inherits TwitchBlockForm<MudBlazorBlocklyFormOptions> | ||
|
||
<MudItem> | ||
<MudTextField T="string" @bind-Value="Block.Url" Placeholder="@LocalizationProvider["Twitch link"]" OnChange="OnChangeAsync" AllowClear="true" Label="@LocalizationProvider["Url"]"/> | ||
<MudTooltip Text="@LocalizationProvider["Twitch video, channel or collection url"]"> | ||
<MudIconButton Class="mx-2" Icon="@Icons.Material.Outlined.Info" /> | ||
</MudTooltip> | ||
<MudTextField T="string" @bind-Value="Block.Url" Placeholder="@LocalizationProvider["Twitch link"]" OnChange="OnChangeAsync" AllowClear="true" Label="@LocalizationProvider["Url"]" For="() => Block.Url" HelperText="@LocalizationProvider["Twitch video, channel or collection url"]"/> | ||
</MudItem> | ||
<div @ref="ContainerRef" class="twitch-video" id="[email protected]"></div> |
5 changes: 1 addition & 4 deletions
5
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudTwitterBlockForm.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,10 +1,7 @@ | ||
@inherits TwitterBlockForm<MudBlazorBlocklyFormOptions> | ||
|
||
<MudItem> | ||
<MudTextField @bind-Value="Block.Url" Label="@LocalizationProvider["Url"]" Placeholder="@LocalizationProvider["Tweet link"]" AllowClear="true" OnChange="OnChangeAsync" T="string"/> | ||
<MudTooltip Text="@LocalizationProvider["Full tweet url"]"> | ||
<MudIconButton Class="mx-2" Icon="@Icons.Material.Outlined.Info" /> | ||
</MudTooltip> | ||
<MudTextField @bind-Value="Block.Url" Label="@LocalizationProvider["Url"]" Placeholder="@LocalizationProvider["Tweet link"]" AllowClear="true" OnChange="OnChangeAsync" For="() => Block.Url" HelperText="@LocalizationProvider["Full tweet url"]"/> | ||
</MudItem> | ||
<div @ref="ContainerRef" class="tweet"> | ||
</div> |