Skip to content

Instantly share code, notes, and snippets.

@tyoshikawa1106
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyoshikawa1106/601b2efde30b1d972b07 to your computer and use it in GitHub Desktop.
Save tyoshikawa1106/601b2efde30b1d972b07 to your computer and use it in GitHub Desktop.
How to Lightning Components - Part 2: BootstrapSF1 Sample
<aura:application>
<link rel="stylesheet" href="/resource/BootstrapSF1/dist/css/bootstrap.css" />
<link rel="stylesheet" href="/resource/BootstrapSF1/dist/css/docs.min.css" />
<script type="text/javascript" src="/resource/jQuery" />
<script type="text/javascript" src="/resource/BootstrapSF1/dist/js/bootstrap.min.js" />
<script type="text/javascript" src="/resource/BootstrapSF1/js/docs.js" />
<!-- Header Component -->
<devjp:LightningBootstrapSF1Header header="How to Lightning Component" detail="- Sample Application -" />
<!-- Cards Component -->
<devjp:LightningBootstrapSF1Cards header="Cards Component" detail="Hello World!!" />
</aura:application>
<aura:component>
<aura:attribute name="header" type="String" />
<aura:attribute name="detail" type="String" />
<div class="page-header page-header-anchor">
<h1>{!v.header}</h1>
<p>{!v.detail}</p>
</div>
</aura:component>
<aura:component>
<aura:attribute name="header" type="String" />
<aura:attribute name="detail" type="String" />
<div class="card">
<div class="card-heading">
{!v.header}
</div>
<div class="card-detail">
{!v.detail}
</div>
</div>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment