Skip to content

Commit 3ca28ca

Browse files
committed
Stepper - support for insertion of step
1 parent 79994f3 commit 3ca28ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/gwt/material/design/addins/client/stepper/MaterialStepper.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ public void add(MaterialStep step) {
162162
totalSteps++;
163163
}
164164

165+
public void insert(MaterialStep step, int index) {
166+
super.insert(step, index);
167+
step.setAxis(getAxis());
168+
registerHandler(step.addSelectionHandler(this));
169+
totalSteps++;
170+
}
171+
165172
/**
166173
* Go to next step, used by linear stepper.
167174
*/

0 commit comments

Comments
 (0)