1 | <?php |
||
19 | class HtmlSegment extends HtmlSemDoubleElement { |
||
20 | use AttachedTrait,TextAlignmentTrait; |
||
21 | |||
22 | public function __construct($identifier, $content="") { |
||
23 | parent::__construct($identifier, "div", "ui segment"); |
||
24 | $this->_variations=\array_merge($this->_variations, [ Variation::PADDED,Variation::COMPACT ]); |
||
25 | $this->_states=\array_merge($this->_states, [ State::LOADING ]); |
||
26 | $this->content=$content; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Defines the segment type |
||
31 | * @param string $type one of "raised","stacked","piled" default : "" |
||
32 | * @return \Ajax\semantic\html\elements\HtmlSegment |
||
33 | */ |
||
34 | public function setType($type) { |
||
35 | return $this->addToPropertyCtrl("class", $type, SegmentType::getConstants()); |
||
36 | } |
||
37 | |||
38 | public function setSens($sens="vertical") { |
||
39 | return $this->addToPropertyCtrl("class", $sens, array ("vertical","horizontal" )); |
||
40 | } |
||
41 | |||
42 | public function setEmphasis($value=Emphasis::SECONDARY) { |
||
45 | |||
46 | public function setCircular() { |
||
49 | |||
50 | public function clear() { |
||
53 | |||
54 | public function setCompact() { |
||
55 | return $this->addToProperty("class", "compact"); |
||
56 | } |
||
57 | |||
58 | public function setBasic() { |
||
61 | } |