Invision UI v.19.6.0-0

Getting Started

  • Running Invision UI
  • UI Component Anatomy
  • Authoring SCSS
  • Authoring Presentational Behavior

Component Foundations

  • SCSS Authoring
    • Mixins & Variables
    • Stateful Classes
  • State Guidance
    • Empty/Zero State
    • Loading State
  • Utilities
    • Align
    • Display
    • Flexbox
    • Font Size
    • Layout
    • Offset
    • Position
    • Overflow
    • Size
    • Spacing
    • Text
  • Layout
    • Arrange [Deprectated]
    • Divided Columns
    • Embed Video
    • Full and Center
    • Fill [Deprectated]
    • Grid
    • Media Blocks
    • Panels
    • Vertical Layouts
  • Media Queries
  • Angular Behaviors
    • App Theme Directive
    • Auto Focus Input
    • Filters
    • Popup (modal dialog) Manager
    • Tether (tooltip/dropdown) Manager
    • Resize Sensor
    • Watchers

UI Component Library

  • Content & Containment
    • Active Translation
    • Auto Fit Text
    • Address
    • Basic & Input Table
    • Brand Logo/Slogan
    • Call to Action - Empty State
    • Carousel
    • Cart
    • Choice
    • Collapsible Container
    • Copyright Footer
    • Coupon Redeemer
    • Content
    • Date Relative Display
    • Definition Lists
    • Delimited List
    • Details
    • Expiration Date Display
    • Feature Toggle
    • Form Section Heading
    • Header
    • Heading
    • Heading With Annotation
    • Icons
    • Interaction Details
    • Labeled Balance
    • Link
    • Main Container
    • Metadata Card
    • Metadata List Item
    • Offering QuickView
    • Payment Instrument
    • Preference Dialog
    • Pricing Plan Decoration
    • Product Availability
    • Product Details
    • Product Image
    • Quick Info Panel
    • Remark
    • Renewal Column
    • Richlist Filterbar
    • Richlist Wrapper
    • Scrollable Horizontal List
    • Search Card
    • Search Panel
    • Section
    • Selectable Option
    • Smart Truncate
    • Status Grid
    • Tooltip
  • Data Visualizations
    • Bill Runs
    • Comparison Table
    • Datatable
    • Progress Tracker
    • Schedules
    • Query Builder
  • Dialogs
    • Confirmation Dialog
    • Dialog
    • Rich List Dialog
    • Wait Dialog
  • Forms and Filters
    • Additional Properties
    • Autocomplete
    • 3 Field Date Input
    • Checkbox
    • Credit Card
    • Bulk Action Bar
    • Buttons
    • Confirmation Button
    • Date Picker
    • E-Check
    • Entity Specification
    • External Bill
    • External Gift Card
    • Focus Group
    • Forms
    • Filter Bar
    • Filter Dropdowns
    • Gift Card
    • Grouped Check Filters
    • Inputs
    • Input Select Combo
    • Monetary Input
    • Multi Dropdown Selector
    • Multiple Numeric Input
    • Monetary Range Input
    • Password Unmask Button
    • Select
    • Select Button Or Stepper
    • Select Or Text Input
    • Stepper
    • Tag Dropdown
  • Navigation & Flow
    • Back Banner
    • Back Component
    • Breadcrumbs
    • Details Pager
    • Expandable Section
    • Infinite Scroll
    • Open New Window
    • Pager
    • Fancy Richlist
    • Standard Navigator
    • Status Indicator
    • Step Progress Bar
    • Step Progress Indicator
    • Tab Card
    • Tab Panel
    • Tier Navigator
    • Wizard
  • Notifications
    • Loading Indicator
    • Toast Notifications
  • Deprecated
    • Content Area

Showcase

  • General
    • Simplelist
    • Richlist
    • Primary (side) Navigator
  • Customer Care
    • Case Activity List
    • Customer Care Navigator Component
    • Dashboard
    • Decisions
  • Reporting
    • Content Visualization

Unit Testing

  • Actions
  • Components
  • Selectors
  • Reducers

End-to-end Testing

Statistics

Confirmation Dialog Box

In this section

Overview Variants
  • Success Confirmation Dialog
  • Warning Confirmation Dialog
  • Informational Confirmation Dialog
  • Critical Confirmation Dialog
  • Popup Confirmation Dialog

The Confirmation Dialog can be configured with the next bindings

Attributes

  • confirmation-type: String - The severity of the dialog (success, warn, critical, info)
  • icon-glyph: String - An icon glyph name.
  • dialog-title: String - A text to display on the header of the modal.
  • dialog-message: String - A text to display on the body of the modal (this could be an String with markdown text, the component automatically translate this to the correspond HTML tags)
  • on-close: Function - Event to call when dialog closes via the "x".
  • on-result: Function - Event to call when primary button is clicked (negative button returns false).
  • negative-button-label: String - A negative No/Cancel button label
  • positive-button-label: String - A positive Yes/Okay/Primary button label
  • hide-negative-button: Boolean (optional) - Hide the negative button
  • hide-positive-button: Boolean (optional) - Hide the positive button

Success Confirmation Dialog

Success Confirmation Dialog

{{ confirmResult }}
HTML
<div class="t-content g-confirmationDialogExample" ng-controller="confirmationDialogExampleController">
    <inv-confirmation-dialog
        confirmation-type="'success'"
        on-result="dialog_result"
        on-close="dialog_close()"
        icon-glyph="'check-circle'"
        dialog-title="'This is a Success Dialog'"
        dialog-message="'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi lobortis id lorem non sollicitudin. Vivamus vestibulum sapien id feugiat tempor. Aliquam erat volutpat.'"
        negative-button-label="'Cancel'"
        positive-button-label="'Primary Action'">
    </inv-confirmation-dialog>

    <div style="margin-top: 20px; font-style: italic; color: grey;">{{ confirmResult }}</div>
</div>

Warning Confirmation Dialog

Warning Confirmation Dialog

The Confirmation Dialog can be configured with a click event-handler (on-result), an icon glyph, a title (dialog-title), a message (dialog-message), a negative (No/Cancel) button label,

a positive (Yes/Okay/Primary Action) button label, and an option to hide the Negative button.

In this example, clicking on the Primary Action button or the Cancel button will cause a message to appear beneath the dialog, demonstrating how to specify a custom click-handler.

{{ confirmResult }}
HTML
<div class="t-content" ng-controller="confirmationDialogExampleController">
    <p>The Confirmation Dialog can be configured with a click event-handler (on-result), an icon glyph, a title (dialog-title), a message (dialog-message), a negative (No/Cancel) button label, </p>
    <p>a positive (Yes/Okay/Primary Action) button label, and an option to hide the Negative button. </p>
    <p>In this example, clicking on the Primary Action button or the Cancel button will cause a message to appear beneath the dialog, demonstrating how to specify a custom click-handler.</p>

    <div class="g-confirmationDialogExample">
        <inv-confirmation-dialog
            confirmation-type="'warn'"
            on-result="dialog_result"
            icon-glyph="'exclamation-circle'"
            dialog-title="'This is a Warning Dialog'"
            dialog-message="'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi lobortis id lorem non sollicitudin. Vivamus vestibulum sapien id feugiat tempor. Aliquam erat volutpat.'"
            negative-button-label="'Cancel'"
            positive-button-label="'Primary Action'" >
        </inv-confirmation-dialog>
    </div>

    <div style="margin-top: 20px; font-style: italic; color: grey;">{{ confirmResult }}</div>
</div>

Informational Confirmation Dialog

Informational Confirmation Dialog

The Confirmation Dialog can be configured with a click event-handler (on-result), an icon glyph, a title (dialog-title), a message (dialog-message), a negative (No/Cancel) button label,

a positive (Yes/Okay/Primary Action) button label, and an option to hide the Negative button.

In this example, the Negative button is hidden.

In this example, clicking on the OK button will cause a message to appear beneath the dialog, demonstrating how to specify a custom click-handler.

{{ confirmResult }}
HTML
<div class="t-content" ng-controller="confirmationDialogExampleController">
    <p>The Confirmation Dialog can be configured with a click event-handler (on-result), an icon glyph, a title (dialog-title), a message (dialog-message), a negative (No/Cancel) button label, </p>
    <p>a positive (Yes/Okay/Primary Action) button label, and an option to hide the Negative button. </p>
    <p>In this example, the Negative button is hidden.</p>
    <p>In this example, clicking on the OK button will cause a message to appear beneath the dialog, demonstrating how to specify a custom click-handler.</p>

    <div class="g-confirmationDialogExample">
        <inv-confirmation-dialog
            confirmation-type="'info'"
            on-result="dialog_result"
            icon-glyph="'info-circle'"
            dialog-title="'This is an Informational Dialog'"
            dialog-message="'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi lobortis id lorem non sollicitudin. Vivamus vestibulum sapien id feugiat tempor. Aliquam erat volutpat.'"
            positive-button-label="'Okay'"
            hide-negative-button="true">
        </inv-confirmation-dialog>
    </div>
    <div style="margin-top: 20px; font-style: italic; color: grey;">{{ confirmResult }}</div>
</div>

Critical Confirmation Dialog

Critical Confirmation Dialog

The Confirmation Dialog can be configured with a click event-handler (on-result), an icon glyph, a title (dialog-title), a message (dialog-message), a negative (No/Cancel) button label,

a positive (Yes/Okay/Primary Action) button label, and an option to hide the Negative button.

In this example, clicking on the Primary Action button or the Cancel button will cause a message to appear beneath the dialog, demonstrating how to specify a custom click-handler.

{{ confirmResult }}
HTML
<div class="t-content" ng-controller="confirmationDialogExampleController">
    <p>The Confirmation Dialog can be configured with a click event-handler (on-result), an icon glyph, a title (dialog-title), a message (dialog-message), a negative (No/Cancel) button label, </p>
    <p>a positive (Yes/Okay/Primary Action) button label, and an option to hide the Negative button. </p>
    <p>In this example, clicking on the Primary Action button or the Cancel button will cause a message to appear beneath the dialog, demonstrating how to specify a custom click-handler.</p>

    <div class="g-confirmationDialogExample">
        <inv-confirmation-dialog
            confirmation-type="'critical'"
            on-result="dialog_result"
            icon-glyph="'exclamation-circle'"
            dialog-title="'This is an Error or Critical Warning Dialog'"
            dialog-message="'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi lobortis id lorem non sollicitudin. Vivamus vestibulum sapien id feugiat tempor. Aliquam erat volutpat.'"
            negative-button-label="'Cancel'"
            positive-button-label="'Primary Action'">
        </inv-confirmation-dialog>
    </div>
    <div style="margin-top: 20px; font-style: italic; color: grey;">{{ confirmResult }}</div>
</div>

Popup Confirmation Dialog

Popup Confirmation Dialog

The Confirmation Dialog is most often used in coordination with the popup manager.

Here, we show a success confirmation dialog in coordination with the popup manager with it's suggested usage.

Note that the popup manager can also popup confirmation dialogs in a separate template, if they are not part of the single template for any reason.

{{ ctrl.confirmResult }}
HTML
<div class="t-content" ng-controller="confirmationDialogPopupExampleController as ctrl">
    <p>The Confirmation Dialog is most often used in coordination with the popup manager.</p>
    <p>Here, we show a success confirmation dialog in coordination with the popup manager with it's suggested usage.</p>
    <p>Note that the popup manager can also popup confirmation dialogs in a separate template, if they are not part of the single template for any reason.</p>
    <div>
        <button class="c-button" ng-click="ctrl.openDialog()">Open</button>
    </div>
    <inv-popup-vault>
        <inv-confirmation-dialog
            inv-popup="ctrl.popupOption"
            confirmation-type="'success'"
            on-result="ctrl.dialog_result"
            on-close="ctrl.closeDialog()"
            icon-glyph="'check-circle'"
            dialog-title="'Order Confirmation'"
            dialog-message="'Order Number 04222011'"
            negative-button-label="'Cancel'"
            positive-button-label="'Primary Action'">
        </inv-confirmation-dialog>
    </inv-popup-vault>
    <div style="margin-top: 20px; font-style: italic; color: grey;">{{ ctrl.confirmResult }}</div>
</div>