【问题标题】:disable prev button in bootstrap tour在引导程序中禁用上一个按钮
【发布时间】:2018-12-03 17:02:05
【问题描述】:

来一场这样的旅行

var TourToolTipPoolConfiguration = new Tour({
            name: 'TourToolTipPoolConfiguration',
            steps: [
                {
                    onNext: function (TourToolTipPoolConfiguration) {
                        TourToolTipPoolConfiguration.goTo(3);
                    },
                    element: "#TimeExpireTicket",
                    title: "foo",
                    content: "test1"
                },
                {
                    element: "#DayNumber",
                    title: "foo",
                    content: "test2"
                },
                {
                    element: "#SavePoolConfig",
                    title: "foo",
                    content: "test3"
                }
            ]
        });

step1 或 step2 是可选的,我隐藏了 div display:none,但是如果在第 2 步中进行游览初始化,我需要禁用 prev 按钮,因为 step1 被隐藏了,如何做到这一点?我尝试 onPrev 评估 div 是否可见但不起作用

【问题讨论】:

    标签: bootstrap-tour


    【解决方案1】:

    你可以简单地使用 css 隐藏它:

    button[data-role='prev'] {
      display: none;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-09
      • 2021-01-19
      • 1970-01-01
      • 2016-10-06
      • 2019-04-28
      • 2021-01-13
      • 1970-01-01
      • 2018-04-16
      相关资源
      最近更新 更多