@@ -21,6 +21,9 @@ discard block |
||
| 21 | 21 | protected $_params=array("action"=>"nothing","on"=>"hover"); |
| 22 | 22 | protected $input; |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param string $identifier |
|
| 26 | + */ |
|
| 24 | 27 | public function __construct($identifier, $value="", $items=array()) { |
| 25 | 28 | parent::__construct($identifier, "div"); |
| 26 | 29 | $this->_template=include dirname(__FILE__).'/../templates/tplDropdown.php'; |
@@ -47,7 +50,7 @@ discard block |
||
| 47 | 50 | /** |
| 48 | 51 | * Insert an item at a position |
| 49 | 52 | * @param mixed $item |
| 50 | - * @param number $position |
|
| 53 | + * @param integer $position |
|
| 51 | 54 | * @return \Ajax\semantic\html\content\HtmlDropdownItem|unknown |
| 52 | 55 | */ |
| 53 | 56 | public function insertItem($item,$position=0){ |
@@ -205,6 +208,9 @@ discard block |
||
| 205 | 208 | return $this->addToPropertyCtrl("class", "compact", array("compact")); |
| 206 | 209 | } |
| 207 | 210 | |
| 211 | + /** |
|
| 212 | + * @param string $action |
|
| 213 | + */ |
|
| 208 | 214 | public function setAction($action){ |
| 209 | 215 | $this->_params["action"]=$action; |
| 210 | 216 | } |