This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Preview Tag widget for the Bubblegum UI toolkit.
version 1.0.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.0
Committed At 2018-07-08 19:27:17 UTC
flarebyte/bubblegum-entity 1.0.0 <= v < 2.0.0 1.0.0
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1

README

Preview Tag Widget

Preview Tag widget for the Bubblegum UI toolkit

Build Status

Please check the demo

Installing Elm packages

There is no dependency.

elm-package install flarebyte/bubblegum-ui-preview-tag

Configuring the widget

type TestMsg
    = OnMouseOver String

attr: String -> String -> Attribute.Model
attr key value =
     { id = Nothing
    , key = key
    , facets = []
    , values = [value]
    }  

adapter : Adapter.Model TestMsg
adapter =  =
        { onMouseOver = OnMouseOver
        }

userSettings: SettingsEntity.Model
userSettings = {
    attributes = [
        attr "ui:user-language" "en-GB"
    ]
 }

settings: SettingsEntity.Model
settings = {
    attributes = [
        attr "ui:selected-appearance" "ui:selected-appearance/bulleted-list"
        ++ getExampleAttributes
    ]
 }

state: StateEntity.Model
state = {
    attributes = [
        attr ui_selected "id:suggestion:1"
        ]
 }

  Widget.view adapter userSettings settings state 

Widget configuration

User Settings

  • ui:user-language : Language used by the user (String)
  • ui:user-right-to-left : Whether the user is using right to left (Bool)

Settings

  • ui:selected-appearance : The appearance of the selected field (String)

And for each suggestion, you need to describe further:

  • ui:constituent-label : Label of the constituent (String)
  • ui:constituent-description : Description of the constituent (String)

State

  • ui:selected : The selected tags for the field (List String)
  • ui:content-id : The unique id of the content (String)

Technical design

See Technical design

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

Managed automatically by Elm version rules.

Authors

  • Olivier Huin - Initial work - olih

See also the list of contributors who participated in this project.

License

This project is licensed under the BSD 3-Clause License - see the LICENSE.md file for details