-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/add_dotnet_8_support
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 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
29 changes: 29 additions & 0 deletions
29
src/Cropper.Blazor/Client/Pages/BasicUsage/Examples/LoadCrossOriginImageExample.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@using Cropper.Blazor.Models | ||
|
||
<div class="img-container"> | ||
<CropperComponent Src="cropperblazor.png" Options="options" InputAttributes="InputAttributes" /> | ||
</div> | ||
|
||
<style> | ||
.img-container { | ||
max-height: 300px; | ||
width: 100%; | ||
} | ||
</style> | ||
|
||
@code { | ||
private Options options; | ||
|
||
public Dictionary<string, object> InputAttributes { get; set; } = new Dictionary<string, object> | ||
{ | ||
{ "crossorigin", "anonymous" } // Another possible values: "use-credentials" or "" (the same as "anonymous"). An invalid keyword and an empty string will be handled as the anonymous keyword. For more information see official https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin documentation | ||
}; | ||
|
||
protected override void OnInitialized() | ||
{ | ||
options = new Options | ||
{ | ||
|
||
}; | ||
} | ||
} |