platform String

The specific platform this layout targets. By default, layouts are displayed on all platforms.


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

<div data-role="layout" data-id="default" data-platform="ios">
  <header data-role="header"><p>iOS header</p></header>

  <div data-role="footer"><p>iOS footer</p></div>

<div data-role="layout" data-id="default" data-platform="android">
  <header data-role="header"><p>Android header</p></header>

  <div data-role="footer"><p>Android footer</p></div>

var app = new;

  .km-view .km-header, .km-view .km-footer {
      color: red;
In this article
Not finding the help you need? Improve this article