leonardanyer/elm-combox/1.0.0

Renamed to AR3ON/elm-combox. It is published under that name, and new versions come out there.

Versions published as leonardanyer/elm-combox still install under that name. 1 version of 1 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/AR3ON/elm-combox.

What we checked: The repo moved to github.com/AR3ON/elm-combox. Rebuilt with git archive from commit fbbbdb2b6353 of https://github.com/AR3ON/elm-combox (zip prefix leonardanyer-elm-combox-fbbbdb2/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 1d22f4f6c43a8e9625e51b4571a1eba8b38235d5.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/leonardanyer/elm-combox/zipball/1.0.0/

elm-combox

elm-combox based on elm-selectize to show dropdown with autocomplete

import Html exposing (Html)
import Html.Attributes as Attributes
import Combox

-- MODEL --
type alias Model =
    { language : Combox.Model
    }

init : ( Model, Cmd Msg )
init =
    ( { language =
          Combox.initial "id-lang" Nothing ["elm","elixir","haskell"]
      }
    , Cmd.none
    )
    
-- UPDATE --
type Msg
    = ComboxMsg Combox.Msg

update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
    case msg of
        ComboxMsg selectizeMsg ->
            let
              ( language, cmd ) =
                  Combox.update selectizeMsg model.language
            in
              ({ model | language = language }, Cmd.map ComboxMsg cmd)

---- VIEW
view : Model -> Html Msg
view model =
    Html.div []
    [ Html.h3 [] [ Html.text "Dropdown Menus" ]
    , Combox.config ComboxMsg
      |> Combox.clear False
      |> Combox.options [Attributes.class "combox"]
      |> Combox.view model.language
    ]