每次打开弹出模式时,我都会创建表单:
<form method="post" data-asset-share-id="download-modal"
class="ui modal cmp-modal-download--wrapper cmp-modal transition visible active"
style="top: 151px; display: block !important;">
"Some html"
</form>
我想知道使用jQuery的弹出模式是否处于活动状态。
答案 0 :(得分:1)
您可以为模式绑定事件处理程序,其中有custom events in semantic-ui modal。您可以使用Option Explicit
Private isRunning As Boolean
Private moves As New Collection
Private Sub start_button_Click()
isRunning = True
End Sub
Private Sub stop_button_Click()
isRunning = False
Dim val As Variant
For Each val In moves
Debug.Print val
Next val
Set moves = Nothing
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If isRunning Then
moves.Add Target.Address & " " & Target.Value
End If
End Sub
或onVisible
事件。
onShow