phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
TableElementTrait.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
8 
9  abstract public function addState($state);
10 
11  public function setPositive() {
12  return $this->addState(State::POSITIVE);
13  }
14 
15  public function setNegative() {
16  return $this->addState(State::NEGATIVE);
17  }
18 
19  public function setWarning() {
20  return $this->addState(State::WARNING);
21  }
22 
23  public function setError() {
24  return $this->addState(State::ERROR);
25  }
26 
27  public function setDisabled($disable=true) {
28  if($disable)
29  $this->addState(State::DISABLED);
30  return $this;
31  }
32 }
setDisabled($disable=true)
show it is currently unable to be interacted with
Definition: BaseTrait.php:116