Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fbettag/lift-bhtml
- Owner: fbettag
- License: other
- Created: 2012-01-22T08:38:43.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-04-11T22:22:11.000Z (over 12 years ago)
- Last Synced: 2024-05-01T19:23:06.966Z (8 months ago)
- Language: Scala
- Homepage: http://fbettag.github.com/lift-bhtml/latest/api/#ag.bett.lift.bhtml.package
- Size: 1.28 MB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).