Skip to content

pavittar/alphabetize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alphabetize - V1

JQuery Plugin

Alphabetize Demo

**Installation: **

One file and magic begins : alphabetize.js

<ul class="alphabetize">
    <li>Words</li>
    <li>Elements</li>
    <li>
        <b>Any</b>
    </li>
    <li>
        <div>Thing</div>
    </li>
</ul>

$('.alphabetize').alphabetize()

Options

{
      alphabets       : upper                  || lower,
      showEmpty       : true                   || false,
      
      emptyTemplate   : null                   || <b>I am empty</b>,
      groupClass      : 'alphabetGroup'        || your class,
      alphabetClass   : 'alphabet'             || your class,
      groupValueClass : 'alphabetGroupElement' || your class,
      
      reverse         : false                  || true,
      showUnknown     : true                   || false

}

Revert

$('.alphabetize').alphabetize('destroy')

Version

1.0.0 License

MIT

About

Categorize data in alphabetical order

Resources

License

Stars

Watchers

Forks

Packages

No packages published