Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Right to left steps #198

Open
alnasiriku opened this issue Oct 18, 2016 · 3 comments
Open

Right to left steps #198

alnasiriku opened this issue Oct 18, 2016 · 3 comments

Comments

@alnasiriku
Copy link

Hello Guys

I'm using this script below to create my form. However, i'm in need to switch the whole steps process from (left to right) to (Right to Left) so that About becomes the first steps on the right, then account then address on the left. Any idea how to do that?

http://www.creative-tim.com/live/material-bootstrap-wizard#
The build profile one

Also, anyway how to include within the form, a google map with a movable marker which updates the field with the new address & coordinates in the form?

@mgr9500
Copy link

mgr9500 commented Aug 10, 2017

@alexandru-paduraru @alnasiriku modify "material-bootstrap-wizard.js":
replace
move_distance = $wizard.width() - ((index_temp+1) * (move_distance));
with
move_distance = move_distance * index_temp;
and add this code:
$wizard.find('.nav li').css('float','right');
after this:
$wizard.find('.nav li').css('width',$li_width + '%');

for use in persian and arabic wizard

GoodLock

@mn7676
Copy link

mn7676 commented Oct 18, 2017

@alnasiriku
replace
move_distance = - move_distance * index_temp;
with
move_distance = move_distance * index_temp;
and add this code:
$wizard.find('.nav li').css('float','right');
after this:
$wizard.find('.nav li').css('width',$li_width + '%');

@RedMoonLight
Copy link

RedMoonLight commented May 16, 2018


 total_steps = $wizard.find('li').length;
            move_distance = $wizard.width() / total_steps;
            step_width = move_distance;
            move_distance *= index;
           
            $current = index + 1;

            if($current == 1){
                move_distance += 8;
            } else if($current == total_steps){
                move_distance -= 8;
            }

i can't make the wizard do backward steps, can u help me?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants