This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Page: --> | |
<apex:page > | |
<c:myaccounts var="a"> | |
<apex:panelGrid columns="2" border="1"> | |
<apex:outputText value="{!a.name}"/> | |
<apex:panelGroup > | |
<apex:panelGrid columns="1"> | |
<apex:outputText value="{!a.billingstreet}"/> | |
<apex:panelGroup > | |
<apex:outputText value="{!a.billingCity}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Component: myaccounts--> | |
<apex:component controller="myAccountsCon"> | |
<apex:attribute name="var" type="String" description="The variable to represent | |
a single account in the iteration."/> | |
<apex:repeat var="componentAccount" value="{!accounts}"> | |
<apex:componentBody > | |
<apex:variable var="{!var}" value="{!componentAccount}"/> | |
</apex:componentBody> | |
</apex:repeat> | |
</apex:component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Page: page --> | |
<apex:page> | |
<apex:composition template="vf_insert"> | |
<apex:define name="header">(page) This is the header of mypage</apex:define> | |
<apex:define name="body">(page) This is the body of mypage</apex:define> | |
</apex:composition> | |
</apex:page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Page: composition --> | |
<!-- This page acts as the template. Create it first, then the page below. --> | |
<apex:page> | |
<apex:outputText value="(template) This is before the header"/><br/> | |
<apex:insert name="header"/><br/> | |
<apex:outputText value="(template) This is between the header and body"/><br/> | |
<apex:insert name="body"/> | |
</apex:page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page sidebar="false" showheader="false"> | |
<apex:flash src="http://www.swftools.org/flash/box.swf" height="300" width="100%" play="true" loop="true"/> | |
</apex:page> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class vfc_gaugeSeries { | |
public String acctId {get;set;} | |
public vfc_gaugeSeries(ApexPages.StandardController controller){ | |
acctId = '0019000000NcZv7';//controller.getRecord().Id; //'001x00000035SxX' ; | |
} | |
public List<gaugeData> getData() { | |
Integer TotalOpptys = 0; | |
Integer TotalAmount = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardController="Account" extensions="GaugeChartController"> | |
<script> | |
myChart.on('beforeconfig', function(config) { | |
config.axes[0].margin=-10; | |
}); | |
</script> | |
<apex:chart name="myChart" height="300" width="450" animate="true" data="{!data}"> | |
<apex:axis type="Gauge" position="gauge" title="Closed Won Opportunities" minimum="0" maximum="30000" steps="10"/> | |
<apex:gaugeSeries dataField="size" donut="50" colorSet="#78c953,#ddd"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page sidebar="false" showHeader="false"> | |
<apex:iframe src="http://www.salesforce.com" scrolling="true" id="theIframe"/> | |
</apex:page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Page: --> | |
<apex:page standardController="Account"> | |
<apex:form> | |
<apex:pageBlock title="My Content" mode="edit"> | |
<apex:pageBlockButtons> | |
<apex:commandButton action="{!save}" value="Save"/> | |
</apex:pageBlockButtons> | |
<apex:pageBlockSection title="My Content Section" columns="2"> | |
<apex:inputField value="{!account.name}"/> | |
<apex:inputField value="{!account.site}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="vfc_input" doctype="html-5.0" | |
showHeader="false" standardStylesheets="false" id="page"> | |
<apex:form id="form" | |
html-oninput="out.value = document.getElementById('page:form:range').value"> | |
Range Field : <apex:input id="range" value="{!anInt}" type="range" | |
html-min="0" html-max="30" html-step="1"/> | |
<output name="out">0</output> | |
<br /> | |
Date : <apex:input id="date" value="{!anDate}" type="date" /> | |
<br /> |