about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Shared/EditablePre.razor
blob: e7590158baa2502a1da56270b548637adb403486 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@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");

}