This is my app - My app How can I write in Java/Visual Studio that in my app when I click on "Upgrade" for the id 1, the "Account" row, to appear CASH - the default value? For now it doesn't appear any value.
I make this enum in Java:
public enum Account {
CASH{
@Override
public String toString() {
return "Cash";
}
},
CARD{
@Override
public String toString() {
return "Card";
}
},
}
And this field form in Visual Studio :
<mat-form-field appearance= "fill" style="margin: 10px 20px 10px 20px">
<mat-label>Account</mat-label>
<mat-select>
<mat-option value="account" type= "text" formControlName="account">CASH</mat-option>
<mat-option value="account" type= "text" formControlName="account">CARD</mat-option>
</mat-select>
</mat-form-field>
Thanks !