Class
- Package:
- Defined In :
- Class:
- Subclasses:
- Extends:
Config Options
<%if(RenderMode.PC){%>
<div>PC</div>
<%}%>
<%if(RenderMode.Text){%>
<div>Text</div>
<%}%>
<%if(RenderMode.Mobile){%>
<div>Mobile</div>
<%}%>
<%if(RenderMode.PC||RenderMode.Text){%>
<div>PC&Text</div>
<%}%>
<%if(RenderMode.PC||RenderMode.Mobile){%>
<div>PC&Mobile</div>
<%}%>
Public Properties
- we will rarely use it, but sometimes it's required
- some pages include js, so we have to disable js adding to pages viewed in text-mode
- rather designer/js programmer has to decide what kind of functionality it is
- for example, you provide alternative content to flash like flash is only for PC
- if not declaration, it'll show to all device
Public Methods
for text -
if you want to make special regions within single page -
then define them in default.aspx <%if(RenderMode.PC){%>...in photo
if you want to remove photo in text mode like this <%if(RenderMode.PC){%>...
Public Events
Public events
Example
example