Skip to content

fbettag/lift-bhtml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BHtml - Bettag Html Package for Liftweb

It is a collection of wrapper-libraries build around Liftweb. Check the API Docs for more.

How to use

./sbt package publish-local

The basic idea is, to pass fields something like:

BHtml.text[Long, MapperClass](myMapperRecord.name)

A more complex example would be:

val enableSubmitJs = JsRaw("""$('input[type=submit]').removeAttr('disabled')""")

val disableSubmitJs = JsRaw("""$('input[type=submit]').attr('disabled', 'disabled')""")

BHtml.text[Long, MapperClass](myMapperRecord.name, false, enableSubmitJs, disableSubmitJs)

Thanks

Thanks to everybody in the Lift Community and on Liftweb Google Groups.