Created
January 23, 2012 03:50
-
-
Save fbettag/1660415 to your computer and use it in GitHub Desktop.
lift-bhtml and lift-bootstrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val record = MyMapper.find(By(MyMapper.id, 5)) | |
BHtml.text[Long, MyMapper](record) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val enableSubmitJs = JsRaw("""$('.stuff').removeAttr('disabled')""") | |
val disableSubmitJs = JsRaw("""$('.stuff').attr('disabled', 'disabled')""") | |
val record = MyMapper.find(By(MyMapper.id, 5)) | |
BHtml.text[Long, MyMapper](record.name, false, enableSubmitJs, disableSubmitJs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val record = MyMapper.find(By(MyMapper.id, 5)) | |
SHtml.ajaxText(record.name.is, (v: String) => { record.name(v).save; Noop }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment