Skip to content

Clank Selectbox is a module that finds and replaces the <select> element with fully stylable elements.

License

Notifications You must be signed in to change notification settings

skribbz14/clank-selectbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clank Selectbox is an AngularJS 1.x module that finds and replaces the <select> element with fully stylable elements.

How to use

To initialize a clank selectbox you only need to add the attribute "clank-selectbox" to a select element.

<select clank-selectbox>

Custom class names

To use a custom module classname, instead of 'clank_select', give the directives attribute a value.

<select clank-selectbox="test_module_name">

Make the label clickable

You can bind the open/close functionality to the label by adding the attribute "clank-selectbox-label-clickable"

<select clank-selectbox clank-selectbox-label-clickable>

Remove the open button

You can remove the button by adding the "clank-selectbox-disable-button" attribute to the select element

<select clank-selectbox clank-selectbox-disable-button>

Modify the button text

You can set the button text by using the "clank-selectbox-button-text" attribute.

<select clank-selectbox clank-selectbox-button-text="Open Dropdown">

Declaring the page wrapper for off-clicks

If you don't want the off-click element target to be the you can specify and element using the "clank-selectbox-page-selector" attribute. Be sure to place the "." or "#" in front of the selectors name.

<select clank-selectbox clank-selectbox-page-selector=".l-page">

About

Clank Selectbox is a module that finds and replaces the <select> element with fully stylable elements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published