lift / lift/framework

Add a CSS class to Css LiftScreen field

Open
#1,302 0 comments 0 reactions 1 assignee Claimed by @pbrant View on GitHub
Dominant language
Scala
Stars
1.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

I just tried to add a css class to a mirrored Record field with the result that the CSS is not added to the resulting html.

object assoc extends ScreenVar(Assoc.createRecord)

val name: Field{type ValueType = String} = field(assoc.is.name, "class" -> "span1" , flagFieldError(name))

I tried with different attributes that do not occur in the screen CSS but that didn't help. It works fine for screen fields that do not mirror any Record fields.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.