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 {
3434 this . setState ( { showModal : ! this . state . showModal } ) ;
3535 }
3636
37+ handleButtonClick ( ) {
38+ console . log ( "SLDS Test Button Clicked" ) ;
39+ }
40+
3741 render ( ) {
3842 return (
3943 < SLDSGrid flavor = "vertical" className = "stage slds-nowrap" >
@@ -63,7 +67,20 @@ export default class HomePage extends Component {
6367
6468
6569
70+ < div className = "slds-p-around--medium" >
71+ < h3 className = "slds-text-heading--medium slds-truncate" >
72+ Button
73+ </ h3 >
6674
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 >
6784
6885
6986
@@ -79,7 +96,7 @@ export default class HomePage extends Component {
7996 </ PrismCode >
8097
8198 < div className = "slds-p-vertical--large" >
82- < SLDSPicklistBase
99+ < SLDSPicklistBase
83100 options = { [
84101 { label :'A Option Option Super Super Long' , value :'A0' } ,
85102 { label :'B Option' , value :'B0' } ,
@@ -93,9 +110,9 @@ export default class HomePage extends Component {
93110 { label :'E2 Option Super Super Long' , value :'E1' } ,
94111
95112
96- ] }
113+ ] }
97114 value = 'C0'
98- label = "Contacts"
115+ label = "Contacts"
99116 modal = { true }
100117 placeholder = "Select a contact" />
101118 </ div >
You can’t perform that action at this time.
0 commit comments