All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperscala.jquery.ui.ErrorMessage.scala Maven / Gradle / Ivy

There is a newer version: 0.10.3
Show newest version
package org.hyperscala.jquery.ui

import org.hyperscala.html._
import org.hyperscala.css.attributes.{Float, Display}

/**
 * @author Matt Hicks 
 */
class ErrorMessage(message: String) extends tag.Div(clazz = List("ui-widget")) {
  style.display := Display.None
  contents += new tag.Div(clazz = List("ui-state-error", "ui-corner-all")) {
    style.paddingAll(5.px)
    style.fontSize := 14.px
    contents += new tag.P {
      contents += new tag.Span(clazz = List("ui-icon", "ui-icon-alert")) {
        style.float := Float.Left
        style.marginRight := 5.px
      }
      contents += message
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy