The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Brad Collins (21) [Avatar] Offline
#1
The right column, Three Ints, contains the following:

, div [ class "filters" ]
    [ viewFilter SetHue "Hue" model.hue
    , viewFilter SetRipple "Ripple" model.ripple
    , viewFilter SetNoise "Noise" model.noise
    ]


The calls to viewFilter are incorrect because the Msg constructor and label text are swapped in each call. The correct code should be as follows:

, div [ class "filters" ]
    [ viewFilter "Hue" SetHue model.hue
    , viewFilter "Ripple" SetRipple model.ripple
    , viewFilter "Noise" SetNoise model.noise
    ]