Skip to content

Commit ca9913e

Browse files
Merge pull request #181 from Sarveshgithub/revert-180-revert-179-dev
Revert "Revert "Master Sync : Auto Generated PR""
2 parents cba008c + 1e6ce6c commit ca9913e

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Salesforce Lightning Data table (LWC Version)
44

5-
![datatable](https://user-images.githubusercontent.com/39730173/158892595-3e7c91a3-9259-4e13-914b-191504ca8a05.PNG)
5+
![datatable](./lwc-datatable.gif)
66

77
## About
88

@@ -61,22 +61,22 @@ Custom Data types (the component extendedDatatable extends lightning:datatable)
6161
#### Single override
6262

6363
```yml
64-
{ "AccountId": { "label": "Account Record Id", "type": "Id" } }
64+
{ 'AccountId': { 'label': 'Account Record Id', 'type': 'Id' } }
6565
```
6666

6767
#### Multiple override
6868

6969
```yml
7070
{
71-
"LastName": { "label": "Surname", "type": "text" },
72-
"AccountId": { "label": "Account Record Id", "type": "Id" }
71+
'LastName': { 'label': 'Surname', 'type': 'text' },
72+
'AccountId': { 'label': 'Account Record Id', 'type': 'Id' }
7373
}
7474
```
7575

7676
#### Related Field Customized
7777

7878
```yml
79-
{ "Account.Name": { "label": "Account Name", "type": "text" } }
79+
{ 'Account.Name': { 'label': 'Account Name', 'type': 'text' } }
8080
```
8181

8282
#### Add a hyperlink to navigate to the record
@@ -85,14 +85,14 @@ The example enables redirection to the account when we click on the account name
8585

8686
```yml
8787
{
88-
"Account.Name":
88+
'Account.Name':
8989
{
90-
"label": "Account Name",
91-
"type": "url",
92-
"typeAttributes":
90+
'label': 'Account Name',
91+
'type': 'url',
92+
'typeAttributes':
9393
{
94-
"label":
95-
{ "fieldName": "Account.Name", "recId": "AccountId" }
94+
'label':
95+
{ 'fieldName': 'Account.Name', 'recId': 'AccountId' }
9696
}
9797
}
9898
}
@@ -106,15 +106,15 @@ To configure buttons(variant are the style of a button) see the documentation he
106106
#### Single button
107107

108108
```yml
109-
[{ "name": "New", "label": "New", "variant": "neutral" }]
109+
[{ 'name': 'New', 'label': 'New', 'variant': 'neutral' }]
110110
```
111111
112112
#### Multiple buttons
113113
114114
```yml
115115
[
116-
{ "name": "New", "label": "New", "variant": "neutral" },
117-
{ "name": "DeleteAll", "label": "Delete all", "variant": "destructive" }
116+
{ 'name': 'New', 'label': 'New', 'variant': 'neutral' },
117+
{ 'name': 'DeleteAll', 'label': 'Delete all', 'variant': 'destructive' }
118118
]
119119
```
120120

lwc-datatable.PNG

-91.4 KB
Binary file not shown.

lwc-datatable.gif

5.31 MB
Loading

0 commit comments

Comments
 (0)