Default.dothtml

24 lines | 1.073 kB Blame History Raw Download
@viewModel DotVvmBP.ViewModels.DefaultViewModel, DotVvmBP
@masterPage Views/Site.dotmaster

<dot:Content ContentPlaceHolderID="Main">
    <div class="px-4 py-5 my-5 text-center">
        <img class="d-block mx-auto mb-4" src="/wwwroot/images/bootstrap-logo.svg" alt="Bootstrap Logo" width="72" height="57">
        <h1 class="display-5 fw-bold">DotVvm with Business Pack</h1>
        <div class="col-lg-6 mx-auto">
            <bp:DateTimePicker SelectedDateTime="{value: Expiration}" />

            <p class="lead mb-4">Try setting a breakpoint on the <i>DefaultViewModel.Refresh()</i> handler.   This page will result in the following error message:</p>

            <div class="alert alert-danger" role="alert">
                The binding property 'SimplePathExpressionBindingProeprty' is not supported.
            </div>

            <div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
                <dot:Button type="button" class="btn btn-primary btn-lg px-4 gap-3" Click="{command: Refresh()}">Refresh</dot:Button>
            </div>
        </div>
    </div>
</dot:Content>