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

Choice

Choice component allows selection of an option potentially with additional values.

In this section

Variants
  • Simple Choice
  • Custom Period Choice

Simple Choice

A simple choice component with no additional values.

HTML
<div class="t-content">
    <div class="c-generalForm">
        <div style="display: flex; align-items: stretch; height: 12em;" class="c-fieldset"
             ng-controller="SimpleChoiceExampleController as controller">
            <div class="c-fieldset-item c-fieldset-item--brief">
                <inv-choice
                    name="simpleChoice"
                    value="controller.value"
                    on-value-changed="controller.onValueChanged(value)">
                    <inv-choice-option value="controller.Period.EVERY_15_MINUTES"></inv-choice-option>
                    <inv-choice-option value="controller.Period.EVERY_30_MINUTES"></inv-choice-option>
                    <inv-choice-option value="controller.Period.HOURLY"></inv-choice-option>
                    <inv-choice-option value="controller.Period.DAILY"></inv-choice-option>
                    <inv-choice-option value="controller.Period.WEEKLY"></inv-choice-option>
                </inv-choice>
            </div>
        </div>
    </div>
</div>

Custom Period Choice

A custom period choice allows entry of a number of period units and unit type.

show-relative-frequency (string) Show the relative frequency time text.
Valid values are:
  • true (show relative text)
  • time (show relative text, and time)
  • timeAndTimeZone (show relative text, time, and time zone)
relative-to-date (date) Works with show-relative-frequency to set what date to base the relative text off.

HTML
<div style="padding: 8px">
    <div><b>show-relative-frequency</b> (string) Show the relative frequency time text. <br> Valid values are:
        <ul><li>true (show relative text)</li>
            <li>time (show relative text, and time)</li>
            <li>timeAndTimeZone (show relative text, time, and time zone)</li></ul></div>
    <div><b>relative-to-date</b> (date) Works with show-relative-frequency to set what date to base the relative text off.</div>
</div>
<br>

<div class="t-content" inv-focus-group>
    <form class="c-generalForm"
          ng-controller="CustomPeriodChoiceExampleController as controller"
          autocomplete="off"
          unsaved-changes-prompt
          novalidate>
        <form-error-messages
            field-locale-key-mapping="controller.formFieldLocaleKeyMapping"
            field-constraint-parameters="::controller.formFieldConstraintParameters"
            extra-error-messages="controller.formErrors">
        </form-error-messages>
        <div class="c-fieldset">
            <div class="c-fieldset-item">
                <inv-date-time-selector
                    date="controller.date"
                    hide-relational-time="true"
                    on-date-changed="controller.onChangeDate">
                </inv-date-time-selector>
            </div>
            <div class="c-fieldset-item"
                 form-field-error-state="frequency"
                 form-field-locale-key="controller.LocaleKeys.FREQUENCY">
                <inv-choice
                    value="controller.value"
                    on-value-changed="controller.onValueChanged(value)">
                    <inv-choice-option value="controller.Period.EVERY_15_MINUTES"></inv-choice-option>
                    <inv-choice-option value="controller.Period.EVERY_30_MINUTES"></inv-choice-option>
                    <inv-choice-option value="controller.Period.HOURLY"></inv-choice-option>
                    <inv-choice-option value="controller.Period.DAILY"></inv-choice-option>
                    <inv-choice-option value="controller.Period.WEEKLY"></inv-choice-option>
                    <inv-choice-option value="controller.Period.MONTHLY"></inv-choice-option>
                    <inv-custom-period-option value="controller.customValue"
                                              active="controller.customActive"
                                              custom-choices="controller.customChoices"
                                              show-relative-frequency="timeAndTimeZone"
                                              relative-to-date="controller.date">
                    </inv-custom-period-option>
                </inv-choice>
                <form-field-error-messages name="frequency"></form-field-error-messages>
            </div>
        </div>
    </form>
</div>