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

io.udash.bootstrap.UdashBootstrap.scala Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package io.udash.bootstrap

import io.udash._
import org.scalajs.dom.Element
import scalatags.JsDom.all._

object UdashBootstrap {
  final val False: ReadableProperty[Boolean] = false.toProperty
  final val True: ReadableProperty[Boolean] = true.toProperty
  final val ColorSecondary: ReadableProperty[BootstrapStyles.Color] = BootstrapStyles.Color.Secondary.toProperty
  private final val NoneProperty = scala.None.toProperty
  def None[A]: ReadableProperty[Option[A]] = NoneProperty

  /** Loads FontAwesome styles. */
  def loadFontAwesome(): Element =
    link(rel := "stylesheet", href := "https://use.fontawesome.com/releases/v5.10.1/css/all.css").render

  /** Loads Bootstrap styles. */
  def loadBootstrapStyles(): Element =
    link(rel := "stylesheet", href := "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css").render
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy