Skip to content

henry0sue/ListBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A JavaScript List Builder widget

The list builder gives you a nice input widget for the users to enter a list of values. The default delimiter that causes an entry to be added to the list is comma, but it can be changed. The widget supports the following features:

  • Editing an individual entry
  • Deleting an individual entry
  • Validating and highlighting an invalid entry

alt tag

Usage

Include the following block of code to use the widget

<script src="http://yui.yahooapis.com/3.18.1/build/yui/yui-min.js"></script>
<script>
    YUI(
            {
                debug: true,
                filter: 'raw',
                groups: {
                    localjs: {
                        base: "src/",
                        modules: {
                            "list-builder": {
                                path: 'list-builder.js',
                                requires: [
                                    'base',
                                    'node',
                                    'widget',
                                    "event-key"
                                ]
                            }

                        }
                    }
                }
            }
    ).use(
            'list-builder',
            function(Y){
                var listInput = new Y.Widgets.ListBuilder();                
                listInput.render(Y.one('#list-value-input'));
            }
    );

About

A JavaScript widget that allows the user to enter a list of values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors