How to close the follow mode in artDialog

original
2012/07/30 13:25
Number of readings 909

Problem description

General call $. dialog ({content:'hello world! '});

In the selector mode, the live click event is bound automatically, and the follow mode is enabled

 $('#main .test').dialog({content: 'hello world'});

How to turn off the follow mode when calling in selector mode?

answer

In artDialog, the follow mode means: "Let the dialog box be adsorbed near the specified element".

If you want to turn off the follow mode, you first need to find the reference of this artDialog dialog box, which can be obtained through the list:

Id: Set the unique ID of the dialog box. Purpose:
1. Prevent repeated ejections
2. After defining the id, you can use art. dialog. list [youID] to obtain the extension method

After finding the reference of the artDialog dialog box, you can turn off the automatic adsorption by calling the follow method. You just need to pass in null in the parameter.

Expand to read the full text
Loading
Click to lead the topic 📣 Post and join the discussion 🔥
Reward
zero comment
zero Collection
zero fabulous
 Back to top
Top