File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ Menu.propTypes = {
118
118
filterWith : React . PropTypes . func ,
119
119
getListLength : React . PropTypes . func ,
120
120
setFocus : React . PropTypes . func ,
121
+ header : React . PropTypes . element ,
122
+ footer : React . PropTypes . element ,
121
123
} ;
122
124
123
125
Menu . defaultProps = {
Original file line number Diff line number Diff line change @@ -43,25 +43,25 @@ module.exports = React.createClass( {
43
43
console . log ( item , ' Selected' ) ;
44
44
} ,
45
45
46
- searchRecords ( ) {
47
- alert ( 'Search Records Clicked') ;
46
+ headerClick ( ) {
47
+ console . log ( '=====> Lookup Header Clicked') ;
48
48
} ,
49
49
50
- newItem ( ) {
51
- alert ( 'New Item Clicked') ;
50
+ footerClick ( ) {
51
+ console . log ( '=====> Lookup Footer Clicked') ;
52
52
} ,
53
53
54
54
getHeader ( ) {
55
55
return (
56
- < div className = "slds-lookup__item" onClick = { this . searchRecords } onMouseDown = { this . searchRecords } >
57
- < ActionItem item = 'search' type = 'account' />
56
+ < div className = "slds-lookup__item" onClick = { this . headerClick } onMouseDown = { this . headerClick } >
57
+ < ActionItem item = 'search' type = 'account' searchTerm = { searchTerm } />
58
58
</ div >
59
59
)
60
60
} ,
61
61
62
62
getFooter ( ) {
63
63
return (
64
- < div className = "slds-lookup__item" onClick = { this . newItem } onMouseDown = { this . newItem } >
64
+ < div className = "slds-lookup__item" onClick = { this . footerClick } onMouseDown = { this . footerClick } >
65
65
< ActionItem item = 'newItem' type = 'account' />
66
66
</ div >
67
67
)
@@ -85,7 +85,7 @@ module.exports = React.createClass( {
85
85
< div className = "slds-p-vertical--large" >
86
86
< SLDSLookup
87
87
items = { items }
88
- label = "Accounts "
88
+ label = "Account "
89
89
type = "account"
90
90
header = { this . getHeader ( ) }
91
91
footer = { this . getFooter ( ) }
You can’t perform that action at this time.
0 commit comments