Is it possible to add first time open event on dialog widget?
Sometimes we need to do something only the first time dialog
appears. I know we can do it easily via javascript using variables -
data check e.t.c. but it would be nice and easier if it was a core feature.
The same event for close would also be useful ( first time close
event )
one() cannot help here because it will require a trigger.
If define
trigger with one() we have duplicate code. 2 triggers one with
on('click',) and another with one('click',)
AND of course I want my code executed after the dialog is shown
for the first time not after the trigger, because trigger may delay
if waiting for ajax response in order to show dialog.
Leave a comment on gadlol's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic