Created
May 22, 2021 17:01
-
-
Save mrasoftGithub/5163d031ab635b20ea725eb8df4197a3 to your computer and use it in GitHub Desktop.
Subcomponent Partner.razor die deel uitmaakt van Ceo.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
<p style="background-color:green;color:white"> | |
<h2>Partner</h2> | |
Corrigeer land:<input @bind="gecorrigeerd_land" class="form-control col-sm-2" /> | |
Corrigeer product:<input @bind="gecorrigeerd_product" class="form-control col-sm-2" /><br /> | |
<button class="btn btn-outline-warning" @onclick="Corrigeer">Corrigeer</button><br /><br /> | |
De organisatie gaat @Product verkopen in @Land<br /> | |
</p> | |
@code { | |
private string gecorrigeerd_land="Svalbard"; | |
private string gecorrigeerd_product="gezichtsbruiners"; | |
[Parameter] | |
public string Land { get; set; } | |
[Parameter] | |
public EventCallback<string> LandChanged { get; set; } | |
[Parameter] | |
public string Product { get; set; } | |
[Parameter] | |
public EventCallback<string> ProductChanged { get; set; } | |
async Task Corrigeer() | |
{ | |
Land = gecorrigeerd_land; ; | |
Product = gecorrigeerd_product; | |
await LandChanged.InvokeAsync(Land); | |
await ProductChanged.InvokeAsync(Product); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment