Visible

com.alecdorrington.laminarcomponents.Visible
object Visible

Whether an element is on the page, as a signal decides.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Visible.type

Members list

Value members

Concrete methods

def when(shown: Signal[Boolean]): Modifier[L.HtmlElement]

Shows an element only while a signal says so, hiding it otherwise.

Shows an element only while a signal says so, hiding it otherwise.

Value parameters

shown

Whether the element is shown.

Attributes

Returns

The modifier showing and hiding the element.