Example #1
0
 public function callback($params = '', $callback = '')
 {
     $this->callback = JQ::func($params, $callback);
     return $this;
 }
 public function create()
 {
     $combineFunction = func_get_args();
     $complete = eol() . JQ::selector($this->selector);
     $complete .= $this->complete();
     if (!empty($combineFunction)) {
         foreach ($combineFunction as $function) {
             $complete .= $function;
         }
     }
     $complete .= ";";
     return $complete;
 }
Example #3
0
 public function create()
 {
     $combineAnimation = func_get_args();
     $animate = eol() . "\t" . JQ::selector($this->selector);
     $animate .= $this->complete();
     if (!empty($combineAnimation)) {
         foreach ($combineAnimation as $animation) {
             $animate .= $animation;
         }
     }
     $animate .= ";" . eol();
     return $this->_tag($animate);
 }
Example #4
0
 public function create()
 {
     $combineEvent = func_get_args();
     $event = eol() . JQ::selector($this->selector);
     $event .= $this->complete();
     if (!empty($combineEvent)) {
         foreach ($combineEvent as $e) {
             $event .= $e;
         }
     }
     $event .= ";";
     return $this->_tag($event);
 }
Example #5
0
 public function create(...$args) : string
 {
     $combineEvent = $args;
     $event = EOL . \JQ::selector($this->selector);
     $event .= $this->complete();
     if (!empty($combineEvent)) {
         foreach ($combineEvent as $e) {
             $event .= $e;
         }
     }
     $event .= ";";
     return $this->_tag($event);
 }
Example #6
0
 public function confirm(string $code, string $true = NULL, string $false = NULL) : string
 {
     $confirm = $this->_jsFunc('confirm', \JQ::stringControl($code), false);
     if (empty($true)) {
         return "{$confirm};";
     }
     return $this->ifClause("{$confirm} === true", $true) . $this->elseClause($false);
 }