Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

On a submit button

The question appears before the form is sent, and a confirmed form is sent only once.

Delete a ticket
A destructive step takes confirm-tone="danger", which makes the confirm button red.
Show code
<app-button type="Submit" tone="Danger"
    confirm="This removes the ticket for everyone."
    confirm-title="Delete ticket" confirm-label="Delete" confirm-tone="danger">Delete ticket</app-button>

On a row action

An icon action in a table row asks the same way before it runs.

Archive a project
Show code
<app-row-actions>
    <app-row-action icon="trash" label="Archive" href="/projects/7/archive"
        data-wui-confirm="Archive this project?" data-wui-confirm-label="Archive" />
</app-row-actions>

Every option

Every value of every prop, one cell each.

confirm

confirm="Save these changes?": asks in the confirm dialog before the action runs

confirm-title

confirm-title="Save changes": the heading of the confirm dialog

confirm-label

confirm-label="Save": the confirm button's text, Confirm when omitted

confirm-tone

confirm-tone omitted (default): a plain confirmation
confirm-tone="danger": draws the confirm button red, for a step that cannot be undone