-
What is the correct syntax to use <lightning:card> in Salesforce?
This is my code inside <aura:component>
<lightning:card footer="Card Footer" title="Hello"> <aura:attribute name="searchAccountDetails" type="Account" default="{'sobjectType': 'Account', 'Name': ''}"/> </lightning:card>when I try to save this without using <lightning:card> there are no errors, but with <lightning:card>, it is throwing an error:
ERROR: Invalid attribute "name": Source.
Could some explain why this error is showing?
Log In to reply.
Popular Salesforce Blogs
Which Salesforce Automation Tool Would You Use For The Following Use Case?
There are several Automation Tools in Salesforce like Workflow Rules, Process Builder, Flows which helps us to automate our tasks using Point and Click Approach…
The Need for the Right Salesforce Lightning Expert
Salesforce is one of the world’s leading CRM platforms, helping businesses enhance their sales, marketing, and customer service. Its wide range of features and tools…
What is Nonprofit Success Pack and Tips To Make The Best Out Of It | Salesforce
Every Nonprofit organization needs to manage its data like donor's information, volunteers, accounts, emails, etc in one place for it to run seamlessly. The Nonprofit…
Popular Salesforce Videos
Add Styles and Data to a Salesforce Lightning Web Component
After completing this unit, you’ll be able to: Use CSS and Lightning Design System with a component. Get data from a Salesforce org. Deploy your…
Know Why Salesforce Is Secure For Your Business Data
Salesforce.com uses a variety of methods as mentioned in the video - to ensure that your business data is safe, secure, and available only to…