Example #1
0
 public function setPlaceholder($value)
 {
     if (JString::isNotNull($value)) {
         $this->setProperty("placeholder", $value);
     }
     return $this;
 }
Example #2
0
 public function setPlaceholder($value)
 {
     if (JString::isNull($value)) {
         if (JString::isNotNull($this->identifier)) {
             $value = \ucfirst($this->identifier);
         }
     }
     if (JString::isNotNull($value)) {
         $this->setProperty("placeholder", $value);
     }
     return $this;
 }
Example #3
0
 public function compile()
 {
     if (JString::isNotNull($this->title)) {
         $this->semElement->addToProperty("data-title", $this->title);
     }
     if (JString::isNotNull($this->content)) {
         $this->semElement->addToProperty("data-content", $this->content);
     }
     if (JString::isNotNull($this->html)) {
         $this->semElement->addToProperty("data-html", $this->html);
     }
     if (JString::isNotNull($this->variation)) {
         $this->semElement->addToProperty("data-variation", $this->variation);
     }
 }
 protected function _getAjaxUrl($url, $attr)
 {
     $url = $this->_correctAjaxUrl($url);
     $retour = "url='" . $url . "';\n";
     $slash = "/";
     if (JString::endswith($url, "/") === true) {
         $slash = "";
     }
     if (JString::isNotNull($attr)) {
         if ($attr == "value") {
             $retour .= "url=url+'" . $slash . "'+\$(this).val();\n";
         } else {
             if ($attr != null && $attr !== "") {
                 $retour .= "url=url+'" . $slash . "'+(\$(this).attr('" . $attr . "')||'');\n";
             }
         }
     }
     return $retour;
 }
 protected function _getAjaxUrl($url, $attr)
 {
     $url = $this->_correctAjaxUrl($url);
     $retour = "url='" . $url . "';\n";
     if (JString::isNotNull($attr)) {
         if ($attr == "value") {
             $retour .= "url=url+'/'+\$(this).val();\n";
         } else {
             $retour .= "url=url+'/'+\$(this).attr('" . $attr . "');\n";
         }
     }
     return $retour;
 }