File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ public function setActive($value=true){
46
46
}
47
47
48
48
public function setCompleted (){
49
- $ this ->removeIcon ();
50
49
$ this ->removePropertyValues ("class " , [StepStatus::COMPLETED ,StepStatus::DISABLED ]);
51
50
return $ this ->setStatus (StepStatus::COMPLETED );
52
51
}
Original file line number Diff line number Diff line change 11
11
12
12
class HtmlStep extends HtmlSemCollection{
13
13
protected $ _activeStep ;
14
+ protected $ _startStep ;
14
15
15
16
public function __construct ( $ identifier ,$ steps =array ()){
16
17
parent ::__construct ( $ identifier ,"div " , "ui steps " );
@@ -50,8 +51,8 @@ public function setVertical(){
50
51
protected function defineActiveStep (){
51
52
$ activestep =$ this ->_activeStep ;
52
53
$ count =$ this ->count ();
53
- if ($ this ->isOrdered ()){
54
- for ($ i =0 ;$ i <$ count ;$ i ++){
54
+ if (! $ this ->isOrdered ()){
55
+ for ($ i =$ this -> _startStep ;$ i <$ count ;$ i ++){
55
56
$ step =$ this ->content [$ i ];
56
57
$ step ->removeStatus ();
57
58
if ($ i <$ activestep )
@@ -95,4 +96,10 @@ public function asLink(){
95
96
}
96
97
return $ this ;
97
98
}
99
+
100
+ public function setStartStep ($ _startStep ) {
101
+ $ this ->_startStep =$ _startStep ;
102
+ return $ this ;
103
+ }
104
+
98
105
}
You can’t perform that action at this time.
0 commit comments