Last active
January 31, 2016 08:28
-
-
Save keirbowden/49cd1aa31650ba2ea721 to your computer and use it in GitHub Desktop.
Lightning Component for the User Freezer Blog Post
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
<aura:component controller="UserFreezer"> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<aura:attribute name="UserDetails" type="Object" /> | |
<aura:attribute name="Message" type="String" /> | |
<table> | |
<tr> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Username</th> | |
<th>Frozen</th> | |
</tr> | |
<aura:iteration items="{!v.UserDetails}" var="ud"> | |
<tr> | |
<td>{!ud.user.FirstName}</td> | |
<td>{!ud.user.LastName}</td> | |
<td>{!ud.user.Username}</td> | |
<td id="{!ud.user.Id}"> | |
<ui:inputCheckbox change="{!c.frozenChanged}" | |
value="{!ud.userLogin.IsFrozen}" /> | |
</td> | |
</tr> | |
</aura:iteration> | |
<tr> | |
<td colspan="5" class="apply"> | |
<button onclick="{!c.applyChanges}">Apply</button> | |
</td> | |
</tr> | |
</table> | |
{!v.Message} | |
</aura:component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment