about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Shared/EditablePre.razor
blob: 01bea0d7201354068a472fe35a5b93341cd1aeb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@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 async Task Callback()
    {
        Console.WriteLine("beep");
    }

}