我目前正在進行一個項目,在那裏我必須在頁面上顯示一個巡視。Bootstrap-Tour with angularJS
我看了一下Bootstrap-Tour,看起來並不那麼糟糕。我在angluarJS控制器工作。所以,我創建了一個巡迴賽,增加一些步驟,並創建)在AngularJS控制器按鈕,斷火StartTour(功能:
var t = new Tour({container: "#main",
backdrop: false,
debug:true,
orphan: true
});
t.addStep({
element: "#content123",
title: "Title123",
content: "Content123"
});
t.addSteps(
[
{
element: ".message.message-1", // element selector to show the popover next to;
title: "Welcome to my tour!",
content: "We're going to make this quick and useful."
},
{
element: ".message.message-2",
title: "Let's finish this thing off with a bang.",
content: "Boom, bang, bam!"
}
]);
// Initialize method on the Tour class. Get's everything loaded up and ready to go.
$scope.StartTour = function(){
// t.init();
t.start(true);
console.log(t);
console.log("start!!");
}
牆我面對現在的問題是,是叫孤兒,如果我不:真當我創建新遊覽時沒有任何事情發生,當我點擊按鈕。我如何解決這個問題?也許一些Angular人使用這個工具?後來我想把它包裝在指令中。
這不是很棒,因爲它不提供覆蓋和高亮功能。 – vonwolf
並且有幾個缺陷..如果我們使用引導選項卡,位置不合適 –