<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Events (onHide, onShow)]]></title><description><![CDATA[<p dir="auto">I’ve looked through the Module Development Documentation at <a href="https://github.com/MichMich/MagicMirror/tree/master/modules" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/tree/master/modules</a> but couldn’t find anything about (handling of) events. In particular, I’m interested in reacting to the events when the module is shown or hidden, for example because of some other module calling <code>.show()</code> and <code>.hide()</code> on it. <code>onShow</code> for example could be useful to update the content of the module. If there are no event handlers to override, I’m only left with setting an update-interval in the start() method. This doesn’t look right for me…<br />
Do I miss something or is there a workaround for updating content on show?</p>
]]></description><link>https://forum.magicmirror.builders/topic/2166/events-onhide-onshow</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 20:18:52 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2166.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Mar 2017 15:25:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Events (onHide, onShow) on Wed, 29 Mar 2017 18:27:25 GMT]]></title><description><![CDATA[<p dir="auto">Ooops, my bad. Sorry for the silly question. Was so focused on the event-derived names <code>onX()</code> :D</p>
<p dir="auto">Topic can be deleted if desired.</p>
]]></description><link>https://forum.magicmirror.builders/post/18444</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18444</guid><dc:creator><![CDATA[Anhalter42]]></dc:creator><pubDate>Wed, 29 Mar 2017 18:27:25 GMT</pubDate></item><item><title><![CDATA[Reply to Events (onHide, onShow) on Wed, 29 Mar 2017 18:09:50 GMT]]></title><description><![CDATA[<p dir="auto">This is shown in the readme:</p>
<p dir="auto">####suspend() When a module is hidden (using the module.hide() method), the suspend() method will be called. By subclassing this method you can perform tasks like halting the update timers.</p>
<p dir="auto">####resume() When a module will be shown after it was previously hidden (using the module.show() method), the resume() method will be called. By subclassing this method you can perform tasks restarting the update timers.</p>
<hr />
<p dir="auto">Just add these functions to your module and do whatever you want to do</p>
]]></description><link>https://forum.magicmirror.builders/post/18440</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18440</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Wed, 29 Mar 2017 18:09:50 GMT</pubDate></item></channel></rss>