MonadConfigButton

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(title: String, configLength: Int, eventFactory: String => Event): MonadConfigButton

Factory to create a MonadConfigButton with a text-based field.

Factory to create a MonadConfigButton with a text-based field.

Value parameters:
configLength

the length of the text field

eventFactory

the factory that create the associated event from the string inserted by the user in the text field

title

the text to show in the button

Returns:

the MonadConfigButton

def numeric(title: String, configLength: Int, min: Int, max: Int, eventFactory: String => Event): MonadConfigButton

Factory to create a MonadConfigButton with a numeric-based field.

Factory to create a MonadConfigButton with a numeric-based field.

Value parameters:
configLength

the length of the text field

eventFactory

the factory that create the associated event from the string representation of the number inserted by the user in the field

max

the maximum number that can be inserted by the user

min

the minimum number that can be inserted by the user

title

the text to show in the button

Returns:

the MonadConfigButton