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){
4646 }
4747
4848 public function setCompleted (){
49- $ this ->removeIcon ();
5049 $ this ->removePropertyValues ("class " , [StepStatus::COMPLETED ,StepStatus::DISABLED ]);
5150 return $ this ->setStatus (StepStatus::COMPLETED );
5251 }
Original file line number Diff line number Diff line change 1111
1212class HtmlStep extends HtmlSemCollection{
1313 protected $ _activeStep ;
14+ protected $ _startStep ;
1415
1516 public function __construct ( $ identifier ,$ steps =array ()){
1617 parent ::__construct ( $ identifier ,"div " , "ui steps " );
@@ -50,8 +51,8 @@ public function setVertical(){
5051 protected function defineActiveStep (){
5152 $ activestep =$ this ->_activeStep ;
5253 $ 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 ++){
5556 $ step =$ this ->content [$ i ];
5657 $ step ->removeStatus ();
5758 if ($ i <$ activestep )
@@ -95,4 +96,10 @@ public function asLink(){
9596 }
9697 return $ this ;
9798 }
99+
100+ public function setStartStep ($ _startStep ) {
101+ $ this ->_startStep =$ _startStep ;
102+ return $ this ;
103+ }
104+
98105}
You can’t perform that action at this time.
0 commit comments