function droppable($onDropFunction, $hoverClass = null) { if (!$this->id) { $this->id = "DroppableButton" . rand(100, 100000); } $this->js = OnEvent::script(OnEvent::droppable($this->id, $onDropFunction, $hoverClass)); }