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