NoRedInk/noredink-ui/7.12.1

NOTE: the latest version is 35.9.3

Nri.Ui.Modal.V2

Changes from V1:

  • Use Styled Html
type alias Model msg =
{ title : String
, visibleTitle : Bool
, content : Html msg
, footerContent : List (Html msg)
, onDismiss : Maybe msg
, width : Maybe Int
}
  • onDismiss: If Nothing, the modal will not be dismissable
  • visibleTitle: If False, the title will still be used for screen readers
  • content: This will be placed in a width:100% div in the main area of the modal
  • footerContent: The optional items here will be stacked below the main content area and center-aligned. Commonly you will either give a list of Nri.Ui.Buttons, or an empty list.
info : Model msg -> Html msg
warning : Model msg -> Html msg

Modules