Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fbettag/lift-bhtml

Liftweb Helpers for various things like SHtml and Mapper-Validation
https://github.com/fbettag/lift-bhtml

Last synced: about 1 month ago
JSON representation

Liftweb Helpers for various things like SHtml and Mapper-Validation

Awesome Lists containing this project

README

        

BHtml - Bettag Html Package for Liftweb
==========

It is a collection of wrapper-libraries build around Liftweb. Check the [API Docs](http://fbettag.github.com/lift-bhtml/latest/api/#ag.bett.lift.bhtml.package) for more.

## How to use

```shell
./sbt package publish-local
```

The basic idea is, to pass fields something like:

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

A more complex example would be:

```scala
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](http://groups.google.com/group/liftweb).