Example #1
0
 function pushBindings()
 {
     // our only bindable property that should be propagated back is VALUE / VALUES.
     if ($this->multiple()) {
         // use propagateValueToBinding() to call validator and propagate new value to binding.
         $cleanValue = $this->propagateValueToBinding('values', $this->values);
         // update UI to cleaned-up value
         $this->setValues($cleanValue);
     } else {
         parent::pushBindings();
     }
 }