【发布时间】:2017-01-11 15:26:06
【问题描述】:
我在流星 1.4 中为 BootstrapTour 使用 flowkey:bootstrap-tour 包。但这个包不适用于我的应用程序。这是我的代码:
let tour = new Tour({
name: "tour",
debug:true,
container: "body",
steps: [
{
element: "#test",
title: "Title of my step",
content: "Content of my step"
}
],
template:
"<div class='popover tour'> <div class='arrow'></div> <h3 class='popover-title'></h3> " +
"<div class='popover-content'></div> " +
"<div class='popover-navigation'> " +
"<button class='btn btn-default' data-role='prev'>« Prev</button> " +
"<span data-role='separator'>|</span> " +
"<button class='btn btn-default' data-role='next'>Next »</button> " +
"</div> " +
"<button class='btn btn-default' data-role='end'>End tour</button> " +
"</div>"
});
// Initialize the tour
tour.init();
// Start the tour
tour.start();
怎么做? 感谢您的关注。 :-)
【问题讨论】:
-
我们遇到了类似的问题,在 Meteor 1.4 应用程序中使用 ES2015 导入。你能解决这个问题吗?
-
@Brylie Christopher Oxley 我用过introjs,但它不起作用:-D
-
啊,我们目前正在使用 introjs,并且取得了成功。你在使用 introjs 时遇到了什么错误?你有我可以查看的公共源代码存储库,以便我提供帮助吗?
-
作为参考,这里是我们当前使用 intro.js 正在进行的拉取请求:github.com/apinf/platform/pull/1602
标签: node.js twitter-bootstrap user-interface meteor bootstrap-tour