Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <aura:component implements="force:appHostable" >
  2. <aura:attribute name="today" type="DateTime" default=""/>
  3. <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
  4.  
  5. <ui:inputDateTime aura:id="expdate" label="Today's Date" class="field uiDatePicker--default" value="{!v.today}" displayDatePicker="true" />
  6. <ui:button class="btn" label="Submit" press="{!c.setOutput}"/>
  7.  
  8. <div aura:id="msg" class="hide">
  9. You entered: <ui:outputDate aura:id="oDate" value="" />
  10. </div>
  11.  
  12. </aura:component>
  13.  
  14. <apex:page standardStylesheets="false">
  15. <apex:includeLightning/>
  16. <apex:stylesheet value="{!URLFOR($Resource.SLDSv2,'/assets/styles/salesforce-lightning-design-system-vf.min.css')}" />
  17. <div class = "SLDS">
  18. <div id="lightning" />
  19. </div>
  20. <apex:includeScript value="/lightning/lightning.out.js"/>
  21. <script>
  22. $Lightning.use(
  23. "c:App",
  24. function() {
  25. $Lightning.createComponent(
  26. "c:TestComponent",
  27. {},
  28. "lightning",
  29. function(cmp) {
  30. }
  31. );
  32. }
  33. );
  34. </script>
  35. </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement