开发者

How can I make jQuery Beauty Tip stay open, even when i click elsewhere?

开发者 https://www.devze.com 2023-01-18 13:54 出处:网络
I\'m trying to use jQuery Beauty Tip as a \"context menu\". I want to open the beauty tip manually, and close it manually.

I'm trying to use jQuery Beauty Tip as a "context menu". I want to open the beauty tip manually, and close it manually.

I use the trigger: 'none' option:

$('#example15').bt({
  trigger: 'none',
  contentSelector: "$('#example-15-content')",
  width: 400
});

But when I click outside the Beauty Tip, it hides.

How can I stop it from hiding, and use $('#example15').btOff() ins开发者_开发百科tead?


There's a clickAnywhereToClose option (scroll to bottom) that defaults to true, just set it to false, like this:

$('#example15').bt({
  trigger: 'none',
  contentSelector: "$('#example-15-content')",
  width: 400,
  clickAnywhereToClose: false
});


clickAnywhereToClose sounds like the option you're looking for:

    clickAnywhereToClose: true,     // clicking anywhere outside of the tip will close it 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号