Passed
Push — master ( 1d8d13...de8c14 )
by Jean-Christophe
04:21
created

Modal::setInverted()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace Ajax\semantic\components;
4
5
use Ajax\JsUtils;
6
7
/**
8
 * Ajax\semantic\components$Modal
9
 * This class is part of Ubiquity
10
 * @author jcheron <[email protected]>
11
 * @version 1.0.1
12
 *
13
 */
14
class Modal extends SimpleSemExtComponent {
15
16
	public function __construct(JsUtils $js) {
17
		parent::__construct($js);
18
		$this->uiName='modal';
19
	}
20
21
	public function showDimmer(){
22
		return $this->addBehavior('hide dimmer');
23
	}
24
25
	public function setInverted(){
26
		$this->params['inverted']=true;
27
	}
28
29
	public function setOnHidden($jsCode) {
30
		$this->addComponentEvent('onHidden', $jsCode);
31
	}
32
}
33