Watch feature

If you want to track components property change, you can usewatchmethod inside ofinit` hook:

class SelectInput extends BaseComponent
{
    public $myProperty = null;
    // ...
    public function init()
    {
        $this->watch('myProperty', function() { 
            // myProperty has changed
        });
    }