-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to set custom class names for both signature & clear button #13 &
- Loading branch information
Marvin Klein
committed
Jun 30, 2023
1 parent
2417c73
commit cb5406c
Showing
4 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
@inject Microsoft.JSInterop.IJSRuntime jsRuntime | ||
|
||
<canvas class="signature @(Disabled ? "disabled" : string.Empty)" id="signature-@_id" style="width: 100%;"> | ||
<canvas class="@Class @(Disabled ? "disabled" : string.Empty)" id="signature-@_id" style="width: 100%;"> | ||
Get a better browser, bro. | ||
</canvas> | ||
|
||
@if (ShowClearButton && !Disabled) | ||
{ | ||
<button type="button" class="btn btn-default" @onclick="Clear">@ClearButtonText</button> | ||
<button type="button" class="@ClearButtonClass" @onclick="Clear">@ClearButtonText</button> | ||
} | ||
|
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