about summary refs log tree commit diff
path: root/MatrixUtils.Web/Shared/EditablePre.razor
blob: acb477c444f807d5e5b13ed9964f84c7eccf28ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@inherits InputBase<string>
<pre id="@Id" class="@CssClass" @onkeyup="Callback" contenteditable="true">@CurrentValue</pre>

@code {

    protected override bool TryParseValueFromString(string? value, out string result, out string? validationErrorMessage) {
        result = value;
        validationErrorMessage = null;
        return true;
    }

    public object Id { get; set; }

    private Task Callback() {
        Console.WriteLine("beep");
        return Task.CompletedTask;
    }

}