Created
June 27, 2017 13:35
-
-
Save gitmatheus/b448583a1fb0e864d8d187e57e88bcff to your computer and use it in GitHub Desktop.
This file contains hidden or 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:component controller="ChildComponentController"> | |
<apex:attribute name="componentValue" description="Attribute on the component." | |
type="String" required="required" assignTo="{!controllerValue}"/> | |
<apex:pageBlock title="My Child Custom Component"> | |
<p> | |
<code>componentValue</code> is "{!componentValue}" | |
<br/> | |
<code>controllerValue</code> is "{!controllerValue}" | |
</p> | |
</apex:pageBlock> | |
<p> | |
Notice that the controllerValue has been lower cased using an Apex method. | |
</p> | |
<!-- | |
<p> | |
Calling Parent Component: | |
</p> | |
<c:ParentComponent componentValue="Hi there, {!$User.FirstName}"/> | |
--> | |
</apex:component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment