WML Tag Reference

Bookmark this page

The Template Element - <template>

Description:
Declares a template for cards in the deck. Everything between the <template></template> tags are automatically used by every card in the deck.


Example:
<template>
  <do type="accept" label="Home">
    <go href="#home"/>
  </do>
</template>


Attributes
Name Value Description
id ID Sets the unique name for the element.
class CDATA Associates the element with a defined class.
onenterforward HREF This event occurs when the card is entered from a <go> task.
onenterbackward HREF This event occurs when the card is entered from a <prev> task.
ontimer HREF This event occurs when a <timer> expires.


Back to Tag Listing

材料来源 http://www.wirelessdevnet.com/channels/refview.phtml?cat=wmltags 本电子书由gudai制作,仅供学习参考,如有意见,欢迎email:base5@126.com。或访问我的博客http://gudai.cnblogs.com