NoRedInk/noredink-ui/9.6.0

NOTE: the latest version is 35.9.3

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 9.6.0 found (15 same-name repos checked); no cached copy. Use another version.

Details

Nri.Ui.PremiumCheckbox.V6

{ label : String
, id : String
, selected : IsSelected
, disabled : Bool
, isLocked : Bool
, isPremium : Bool
, onChange : Bool -> msg
, onLockedClick : msg
}
-> Html msg

A checkbox that should be used for premium content

  • onChange: A message for when the user toggles the checkbox
  • onLockedClick: A message for when the user clicks a checkbox they don't have PremiumLevel for. If you get this message, you should show an Nri.Ui.Premium.Model.view

This module is used when there may or may not be Premium content to be "checked"!

Patch changes

  • Use Nri.Ui.Pennant.V2.premiumFlag instead of Nri.Ui.Pennant.V1.premiumFlag

Changes from V5

  • Allow checkbox to show pennant, or not, based on bool
  • Remove PremiumWithWriting, it's only Premium now