Files
2022-11-04 13:24:24 +02:00

58 lines
2.6 KiB
HTML
Executable File

<div data-role="view" data-title="Tag this photo" id="popover" data-use-native-scrolling="true">
<div data-role="header">
<div data-role="navbar">
<a id="back-button" class="nav-button" data-align="left" data-role="backbutton">Back</a>
<span data-role="view-title"></span>
<a data-align="right" data-rel="popover" href="#popover-people" data-role="button" data-icon="contacts"></a>
<a data-align="right" data-icon="source-code" data-click="goToSourceCode" data-role="button" title="Show this demo source code"></a>
</div>
</div>
<div data-role="content" style="text-align: center;">
<img src="content/mobile/shared/faces.jpg" />
</div>
<div data-role="popover" id="popover-people" data-popup='{"height": "20em", "width": "20em"}'>
<div data-role="view" data-title="People">
<div data-role="header">
<div data-role="navbar" class="km-light">
<span data-role="view-title"></span>
<a data-role="button" data-align="right" data-click="closeParentPopover" data-icon="close"></a>
</div>
</div>
<ul data-role="listview">
<li><label>Isabella Anderson<input type="checkbox"></label></li>
<li><label>Josh Anderson<input type="checkbox"></label></li>
<li><label>Linda Anderson<input type="checkbox"></label></li>
<li><label>Oliver Anderson<input type="checkbox"></label></li>
<li><label>James Williams<input type="checkbox"></label></li>
<li><label>Barbara Williams<input type="checkbox"></label></li>
</ul>
</div>
</div>
<div data-role="popover" id="popover-location" data-popup='{"width": "20em"}'>
<div data-role="view">
<ul data-role="listview" data-click="closeParentPopover">
<li><label>Sydney, Australia <input name="location" type="radio"></label></li>
<li><label>New York, USA <input name="location" type="radio"></label></li>
<li><label>Miami, USA <input name="location" type="radio"></label></li>
</ul>
</div>
</div>
<div data-role="footer">
<div data-role="navbar">
<a data-align="right" href="#popover-location" data-rel="popover" data-role="button">Location</a>
</div>
</div>
</div>
<script>
function closeParentPopover(e) {
var popover = e.sender.element.closest('[data-role=popover]').data('kendoMobilePopOver');
popover.close();
}
</script>