ZButton

dev.cheleb.ziotapir.laminar.ZButton
object ZButton

A Laminar button that runs a ZIO effect on click.

Attributes

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

Members list

Value members

Concrete methods

def apply[A](label: String, iconName: String)(onClickEffect: => ZIO[BackendClient, Throwable, A]): ReactiveHtmlElement[WaButtonComponent & HTMLElement]

Creates a ZButton that runs the given ZIO effect when clicked.

Creates a ZButton that runs the given ZIO effect when clicked.

Attributes

def apply[A](label: String, iconName: String, uri: => Uri)(onClickEffect: => ZIO[BackendClient, Throwable, A]): ReactiveHtmlElement[WaButtonComponent & HTMLElement]

Creates a ZButton that runs the given ZIO effect when clicked, passing the given URI.

Creates a ZButton that runs the given ZIO effect when clicked, passing the given URI.

Attributes