for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ajax\semantic\components;
use Ajax\common\components\SimpleExtComponent;
use Ajax\JsUtils;
class Popup extends SimpleExtComponent {
public function __construct(JsUtils $js) {
parent::__construct($js);
$this->uiName="popup";
}
/**
*
* @param string $value default : click
* @return $this
*/
public function setOn($value="click") {
return $this->setParam("on", $value);
* This event fires immediately when the show instance method is called.
* @param string $jsCode
public function setOnShow($jsCode) {
return $this->setParam("onShow", "%function(){".$jsCode."}%");
public function setExclusive($value){
return $this->setParam("exclusive", $value);
* Defines the css selector of the displayed popup
* @param string $popup the css selector of the popup
* @return \Ajax\semantic\components\Popup
public function setPopup($popup){
return $this->setParam("popup", $popup);
//TODO other events implementation