Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.37 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.37 KB

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">