- Source
- Pro.scala
trait Pro.ObservableMutable[Char.G.Pro.ObservableMutable.A]
trait Char.G.Pro.Observable[Char.G.Pro.ObservableMutable.A]
trait Pro.Observable[Char.G.Pro.ObservableMutable.A]
trait Observable
trait Char.G.Pro.Mutable[Char.G.Pro.ObservableMutable.A]
trait Pro.Mutable[Char.G.Pro.ObservableMutable.A]
trait Char.G.Pro[Char.G.Pro.ObservableMutable.A]
trait Any.Z.PrimitiveTag.Char
trait Any.Z.PrimitiveTag
trait Pro[Char.G.Pro.ObservableMutable.A]
class java.lang.Object
trait scala.Matchable
class Any
class Char.G.Pro.ObservableMutable.X.Abstract[Char.G.Pro.ObservableMutable.X.Abstract.A]
class Char.G.Pro.ObservableMutable.X.Basic[Char.G.Pro.ObservableMutable.X.Basic.A]
Def
On change subscription
On change subscription
Adds given function as listener to property change events
val pro = String.Pro.OM("foo")
// event subscription
pro.onChange(() => "Change Detected".tp)
// library based event subscription
pro.onValueChangeWithOld((v, old) => "Value changed from " + old + " to " + v tp()))
pro() = "bar"
// Output
Value changed from foo to bar
Change Detected
- Inherited from
- Observable
- Source
- __.scala