Skip to content

almirbi/material-value-chooser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on webcomponents.org

<material-value-chooser>

An input element that makes it easier for the user to input a value from a pre-defined set of values which are often used. E.g. if entering a score of a football match, chances are high the number to be used will be an integer from 0 - 5. Instead of using the keyboard and additional tap/clicks the user can input a number more efficiently. Also, poker.

You may import iron-icons to use with this element and set the icon property from the iron iconset

Set the values by setting the values property of the element, and then pick up the chosen value with the value property.

Icon and label property cannot be used at the same time, choose one.

Opened property expands/collapses the value chooser.

<material-value-chooser icon="add" label="+" values="[[values]]" value="{{value}}" opened="{{opened}}"></material-value-chooser>
<material-value-chooser></material-value-chooser>

About

An input element that makes it easier for the user to input a value from a pre-defined set of values which are often used.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages