45
Component Body.....................................................53
Component Facets....................................................54
Best Practices for Conditional Markup.......................................55
Component Versioning.................................................56
Using Expressions ....................................................57
Dynamic Output in Expressions........................................58
Conditional Expressions.............................................59
Value Providers ..................................................59
Expression Evaluation n ..............................................63
Expression Operators Reference.......................................64
Expression Functions Reference........................................67
Using Labels........................................................70
Using Custom Labels...............................................70
Input Component Labels.............................................71
Dynamically Populating Label Parameters.................................71
Setting Label Values via a Parent Attribute.................................72
Localization.........................................................73
Providing Component Documentation ......................................74
Working with UI Components.............................................76
UI Events.......................................................78
Using the UI Components...........................................79
Supporting Accessibility.................................................95
Button Labels....................................................96
Help and Error Messages s ...........................................96
Audio Messages .................................................97
Forms, Fields, and Labels............................................97
Events.........................................................97
Menus ........................................................97
Chapter 4: Using Components
.........................................99
Adding Components to Apps............................................100
Add Lightning Components to Salesforce1....................................101
Add Lightning Components to Lightning Experience.............................102
Use Lightning Components in Visualforce Pages...............................103
Add Lightning Components to Any App with Lightning Out (Beta)....................104
Lightning Out Requirements s .........................................105
Lightning Out Dependencies.........................................105
Lightning Out Markup..............................................106
Authentication from Lightning Out t .....................................108
Lightning Out Considerations and Limitations..............................108
Configure Components for Communities....................................109
Create Custom Page Layout Components for Communities.....................110
Configure Components for Lightning Pages and the Lightning App Builder..............111
Configure Components for Lightning Experience Record Home Pages (PILOT).........113
Contents
C# HTML5 Viewer: Load, View, Convert, Annotate and Edit Word users can convert Convert Microsoft Office Word to searchable PDF online, create To view, convert, edit, process, built, sign Word documents, please refer to
change font size pdf form reader; pdf form data extraction
45
Tips and Considerations for Configuring Components for Lightning App Builder.......114
Chapter 5: Communicating with Events
..................................116
Handling Events with Client-Side Controllers...................................117
Actions and Events ...................................................118
Component Events ...................................................120
Handling Component Events.........................................121
Component Event Example..........................................125
Application Events....................................................127
Handling Application Events s .........................................129
Application Event Example e ..........................................129
Event Handling Lifecycle................................................131
Advanced Events Example..............................................133
Firing Lightning Events from Non-Lightning Code...............................137
Events Best Practices..................................................138
Events Anti-Patterns...............................................138
Events Fired During the Rendering Lifecycle ..................................139
Salesforce1 Events....................................................142
System Events ......................................................144
Chapter 6: Creating Apps
............................................145
App Overview ......................................................146
Designing App UI....................................................146
Creating App Templates ...............................................146
Content Security Policy Overview..........................................147
Styling Apps........................................................147
Using External CSS................................................148
Tips for CSS in Components..........................................149
Vendor Prefixes..................................................150
Styling with Design Tokens..........................................150
Using JavaScript .....................................................161
Accessing the DOM...............................................162
Using External JavaScript Libraries.....................................163
Working with Attribute Values in JavaScript...............................164
Working with a Component Body in JavaScript.............................165
Sharing JavaScript Code in a Component Bundle...........................166
Client-Side Rendering to the DOM.....................................168
Invoking Actions on Component Initialization..............................171
Modifying Components Outside the Framework Lifecycle......................172
Validating Fields s .................................................172
Throwing and Handling Errors........................................174
Calling Component Methods.........................................176
Making API Calls.................................................177
JavaScript Cookbook..................................................177
Contents
How to C#: Set Image Thumbnail in C#.NET VB.NET How-to, VB.NET PDF, VB.NET Word, VB.NET Excel, VB.NET PowerPoint, VB.NET Tiff Add a new Form Item to the project, and choose to design mode sign.
extract data from pdf using java; fill in pdf form reader How to C#: Quick to Start Using XImage.Raster project’s reference. Add a new Form Item to the project, and choose to design mode sign. Make the ToolBox view show. Right click
export pdf form data to excel; how to make pdf editable form reader
45
Detecting Data Changes............................................178
Finding Components by ID..........................................178
Dynamically Creating Components.....................................179
Dynamically Adding Event Handlers....................................181
Dynamically Showing or Hiding Markup.................................182
Adding and Removing Styles.........................................182
Which Button Was Pressed?.........................................183
Using Apex x ........................................................184
Creating Server-Side Logic with Controllers...............................185
Creating Components s .............................................193
Working with Salesforce Records......................................193
Testing Your Apex Code............................................201
Making API Calls from Apex.........................................202
Controlling Access...................................................202
Application Access Control..........................................204
Interface Access Control............................................204
Component Access Control .........................................204
Attribute Access Control............................................205
Event Access Control..............................................205
Using Object-Oriented Development.......................................205
What is Inherited?................................................205
Inherited Component Attributes.......................................206
Abstract Components .............................................208
Interfaces .....................................................208
Inheritance Rules ................................................209
Caching with Storage Service............................................209
Initializing Storage Service...........................................210
Using the AppCache..................................................211
Enabling the AppCache e ............................................212
Loading Resources with AppCache e ....................................212
Distributing Applications and Components...................................213
Chapter 7: Debugging
...............................................214
Debug JavaScript Code................................................215
Salesforce Lightning Inspector Chrome Extension...............................215
Install Salesforce Lightning Inspector....................................215
Use Salesforce Lightning Inspector.....................................215
Log Messages......................................................228
Warning Messages ..................................................229
Chapter 8: Reference
...............................................231
Reference Doc App..................................................232
aura:application ....................................................232
aura:dependency ...................................................233
Contents
How to C#: Create a Winforms Control VB.NET How-to, VB.NET PDF, VB.NET Word, VB.NET Excel, VB.NET PowerPoint, VB.NET Tiff Add a new Form Item to the project, and choose to design mode sign.
using pdf forms to collect data; extract pdf data to excel
45
aura:event ........................................................234
aura:interface ......................................................234
aura:method.......................................................235
aura:set ..........................................................236
Setting Attributes Inherited from a Super Component........................236
Setting Attributes on a Component Reference.............................237
Setting Attributes Inherited from an Interface..............................238
Component Reference ................................................238
aura:component ................................................238
aura:expression ................................................239
aura:html .....................................................239
aura:if .......................................................240
aura:iteration ..................................................240
aura:renderIf ...................................................241
aura:template ..................................................242
aura:text ......................................................242
aura:unescapedHtml .............................................242
force:canvasApp ................................................243
force:inputField .................................................244
force:outputField ................................................245
force:recordEdit .................................................246
force:recordView ................................................246
forceChatter:feed ................................................247
ltng:require ....................................................248
ui:actionMenuItem ...............................................249
ui:button ......................................................250
ui:checkboxMenuItem ............................................252
ui:inputCheckbox ................................................254
ui:inputCurrency ................................................256
ui:inputDate ...................................................258
ui:inputDateTime ................................................261
ui:inputDefaultError ...............................................264
ui:inputEmail ...................................................266
ui:inputNumber .................................................268
ui:inputPhone ...................................................271
ui:inputRadio ...................................................273
ui:inputRichText .................................................276
ui:inputSecret ..................................................278
ui:inputSelect ...................................................280
ui:inputSelectOption ..............................................284
ui:inputText ....................................................285
ui:inputTextArea .................................................287
ui:inputURL ....................................................290
ui:menu ......................................................292
Contents
45
ui:menuItem ...................................................296
ui:menuItemSeparator ............................................297
ui:menuList ....................................................297
ui:menuTrigger .................................................299
ui:menuTriggerLink ...............................................300
ui:message ....................................................301
ui:outputCheckbox ...............................................302
ui:outputCurrency ................................................304
ui:outputDate ..................................................305
ui:outputDateTime ...............................................307
ui:outputEmail ..................................................309
ui:outputNumber ................................................310
ui:outputPhone ..................................................311
ui:outputRichText ................................................313
ui:outputText ...................................................314
ui:outputTextArea ................................................315
ui:outputURL ...................................................317
ui:radioMenuItem ................................................318
ui:spinner .....................................................320
Event Reference .....................................................321
force:createRecord ...............................................321
force:editRecord .................................................322
force:navigateToList...............................................322
force:navigateToObjectHome ........................................324
force:navigateToRelatedList .........................................324
force:navigateToSObject ...........................................325
force:navigateToURL ..............................................325
force:recordSave.................................................326
force:recordSaveSuccess ...........................................327
force:refreshView ................................................327
force:showToast .................................................328
lntg:selectSObject ................................................328
lntg:sendMessage ...............................................329
ui:clearErrors ...................................................329
ui:collapse.....................................................330
ui:expand .....................................................330
ui:menuFocusChange .............................................331
ui:menuSelect ...................................................331
ui:menuTriggerPress ..............................................332
ui:validationError.................................................333
System Event Reference................................................333
aura:doneRendering..............................................334
aura:doneWaiting................................................334
aura:locationChange .............................................335
Contents
16
aura:systemError ................................................336
aura:valueChange ...............................................337
aura:valueDestroy................................................337
aura:valueInit...................................................338
aura:waiting ...................................................339
Supported HTML Tags.................................................339
Supported aura:attribute Types s ..........................................340
Basic Types ....................................................341
Object Types ...................................................343
Standard and Custom Object Types....................................343
Collection Types .................................................343
Custom Apex Class Types..........................................345
Framework-Specific Types ..........................................345
INDEX
..........................................................347
Contents
Documents you may be interested
Documents you may be interested