File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change
1
+
2
+ <SLDSButton flavor="neutral" onClick={this.handleButtonClick}>Test Button</SLDSButton>
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ export default class HomePage extends Component {
34
34
this . setState ( { showModal : ! this . state . showModal } ) ;
35
35
}
36
36
37
+ handleButtonClick ( ) {
38
+ console . log ( "SLDS Test Button Clicked" ) ;
39
+ }
40
+
37
41
render ( ) {
38
42
return (
39
43
< SLDSGrid flavor = "vertical" className = "stage slds-nowrap" >
@@ -63,7 +67,20 @@ export default class HomePage extends Component {
63
67
64
68
65
69
70
+ < div className = "slds-p-around--medium" >
71
+ < h3 className = "slds-text-heading--medium slds-truncate" >
72
+ Button
73
+ </ h3 >
66
74
75
+ < PrismCode className = 'language-markup' >
76
+ { require ( "raw-loader!../code-snippets/SLDSButton.txt" ) }
77
+ </ PrismCode >
78
+ < div className = "slds-p-vertical--large" >
79
+ < SLDSButton flavor = "neutral" onClick = { this . handleButtonClick } >
80
+ Test Button
81
+ </ SLDSButton >
82
+ </ div >
83
+ </ div >
67
84
68
85
69
86
@@ -79,7 +96,7 @@ export default class HomePage extends Component {
79
96
</ PrismCode >
80
97
81
98
< div className = "slds-p-vertical--large" >
82
- < SLDSPicklistBase
99
+ < SLDSPicklistBase
83
100
options = { [
84
101
{ label :'A Option Option Super Super Long' , value :'A0' } ,
85
102
{ label :'B Option' , value :'B0' } ,
@@ -93,9 +110,9 @@ export default class HomePage extends Component {
93
110
{ label :'E2 Option Super Super Long' , value :'E1' } ,
94
111
95
112
96
- ] }
113
+ ] }
97
114
value = 'C0'
98
- label = "Contacts"
115
+ label = "Contacts"
99
116
modal = { true }
100
117
placeholder = "Select a contact" />
101
118
</ div >
You can’t perform that action at this time.
0 commit comments