Is it possible somehow to listen events globally? For example, when popover is shown/hidden
See original GitHub issueFor example there is a popover with ref="myPopover"
.
Is there any way to listen myPopover
for such events as shown
/hidden
globally, something like addEventListener
for shown
and hidden
methods?
From the source code seems that it is possible, but I do not understand how to connect to the internal event system in order to listen it.
I need to know if myPopover
is shown/hidden far far away from a component where myPopover
lives and I do not want to use vuex
+ @shown="callSomeFunction"
.
Thank.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
javascript - Is there a way to listen for popovers hide being called ...
Try the hide event: $(document).on('hide.bs.popover', function() { console.log('popover hidden'); });. It's in the docs: http://getbootstrap.com/javascript/ ...
Read more >Collapse | Components - BootstrapVue
'Global' $root instance events. Using $root instance it is possible to emit and listen events somewhere out of a component, where <b-collapse> is...
Read more >Rally.ui.popover.OwnerPopover - Agile Central App SDK 2.1 ...
Create a popover to choose the owner of a specified record. ... An array of events that, when fired, should be bubbled to...
Read more >NEWS
Now, if no Input binding element is found, the shiny:inputchanged event is triggered ... please set the global option options(shiny.snapshotsortc = TRUE) ....
Read more >Susanne Wilding | SAP Fiori Design Guidelines
For an event end date, for example, the focus should propose a date in the ... You can add a footer with OK...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can listen for “global” events on the
$root
instance.The events entry in component’s package.json is intended for events that the component emits itself, not for one’s that the component listens for.
We don’t have an official location, other than in the readme, for events the component may listen for (on root).