File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 14
14
*
15
15
* @see http://semantic-ui.com/collections/tab.html
16
16
* @author jc
17
- * @version 1.02
17
+ * @version 1.0.2
18
18
*/
19
19
class HtmlTab extends HtmlSemCollection {
20
20
@@ -29,6 +29,10 @@ public function __construct($identifier, $tabs = array()) {
29
29
$ this ->content ["menu " ] = $ menu ;
30
30
$ this ->addItems ($ tabs );
31
31
}
32
+
33
+ public function getMenu (){
34
+ return $ this ->content ['menu ' ];
35
+ }
32
36
33
37
/**
34
38
*
@@ -288,4 +292,9 @@ public function compile(JsUtils $js = NULL, &$view = NULL) {
288
292
$ this ->activate (0 );
289
293
return parent ::compile ($ js , $ view );
290
294
}
295
+
296
+ public function setInverted ($ recursive =true ){
297
+ parent ::setInverted ($ recursive );
298
+ $ this ->content ['menu ' ]->addClass ('inverted ' );
299
+ }
291
300
}
Original file line number Diff line number Diff line change 14
14
use Ajax \semantic \widgets \base \InstanceViewer ;
15
15
use Ajax \service \JArray ;
16
16
use Ajax \service \JString ;
17
+ use Ajax \semantic \html \base \HtmlSemDoubleElement ;
17
18
18
19
/**
19
20
* DataTable widget for displaying list of objects
@@ -710,5 +711,11 @@ public function setVisibleHover($_visibleHover) {
710
711
public function getPaginationToolbar () {
711
712
return $ this ->_paginationToolbar ;
712
713
}
713
-
714
+
715
+ public function setInverted ($ recursive =true ){
716
+ $ this ->getHtmlComponent ()->setInverted ($ recursive );
717
+ if ($ this ->_emptyMessage instanceof HtmlSemDoubleElement){
718
+ $ this ->_emptyMessage ->setInverted ($ recursive );
719
+ }
720
+ }
714
721
}
You can’t perform that action at this time.
0 commit comments