Drop in replacement for prettier form elements.
.lexi
# Radio Buttons
input(value="1st" type="radio" name="group1")
input(value="2nd" type="radio" name="group1")
input(value="3rd" type="radio" name="group1" checked="checked")
# Basic Select
select
optgroup(label="General Types")
option(value="any-hosts") any host
option(value="any-appComponents") any app component
option(value="any-platformComponents") any platform component
optgroup(label="Specific Types")
option(value="web.1") web.1
option(value="web.2") web.2
option(value="web.3") web.3
# Select with white background
select.white
optgroup(label="General Types")
option(value="any-hosts") any host
option(value="any-appComponents") any app component
option(value="any-platformComponents") any platform component
optgroup(label="Specific Types")
option(value="web.1") web.1
option(value="web.2") web.2
option(value="web.3") web.3
# Blue Theme
.lexi.lexi-blue # (any parent element)
input(type="checkbox" checked="true")
// Replace all elements with `lexi` class
lexify()
// Replace elements in a jquery context
lexify( $('.just-this-element') )
// Add event listeners as if lexi was not used
$('select').on( 'change', function(e){
// do something
})
- Currently require jquery.
- Currently require jade for templating.