Fires when a mobile View using the layout becomes visible.

Event Data

e.layout jQuery

The mobile layout instance

e.view jQuery

The mobile view instance


<div id="foo" data-role="view" data-layout="default">
  Foo view

<div id="bar" data-role="view" data-layout="default">
  Bar view

<div data-role="layout" data-id="default"  data-show="onShow">
  <div data-role="footer">
    <div data-role="tabstrip">
      <a href="#foo" data-icon="contacts">foo</a>
      <a href="#bar" data-icon="history">bar</a>

var app = new;

function onShow(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
In this article