문제

I want to place jquery-steps next and previous button out of that #wizard means main div. I want to place it at bottom of my page. I can always take custom buttons and then add pagination functionality over there.

But is there any easy way of doing this? Means I just give id like next functionality should be assigned to this id and previous functionality should be assigned to this id?

If some body have any idea regarding this, and share with me that would be great.

Thanks.

도움이 되었습니까?

해결책

I ended up taking buttons and then adding event to it. was very easy only.

    ----------events----------------
    'click #reportConfigStepsPrev':function(){
            $("#wizard").steps('previous');
          },
          'click #reportConfigStepsNext':function(){
            $("#wizard").steps('next');
          },
    ------------------------------------------------
    onStepChanged: function(event,  currentIndex, newIndex)
              {
                if(currentIndex == 0)
                {
                  $("#reportConfigStepsPrev").addClass("btn-default");
                  $("#reportConfigStepsPrev").removeClass("btn-primary");
                }
                else
                  $("#reportConfigStepsPrev").addClass("btn-primary");
                if(currentIndex == ($(".steps li").length - 1))
                {

                    $("#reportConfigStepsNext").addClass("btn-default");
                    $("#reportConfigStepsNext").removeClass("btn-primary");
                }
                else
                  $("#reportConfigStepsNext").addClass("btn-primary");

              },

-----------------html----------------------------
  <button type="button" id="reportConfigStepsPrev" class="rbtn btn-sm btn-default"><i class="fa fa-chevron-left"></i></button>
  <button type="button" id="reportConfigStepsNext" class="reportConfigNevigation btn btn-sm btn-primary"><i class="fa fa-chevron-right"></i></button>

다른 팁

Just add this line:

$("div.actions").insertBefore("div.content");

Here the documentation

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top