@@ -6,19 +6,21 @@ import 'devextreme/dist/css/dx.light.css';
66import DropDownButton from 'devextreme-react/drop-down-button' ;
77
88const actions = [
9- { id : 1 , text : " My profile" , icon : " user" } ,
10- { id : 2 , text : " Messages" , icon : " email" } ,
11- { id : 3 , text : " Contacts" , icon : " group" } ,
12- { id : 4 , text : " Log out" , icon : " runner" }
9+ { id : 1 , text : ' My profile' , icon : ' user' } ,
10+ { id : 2 , text : ' Messages' , icon : ' email' } ,
11+ { id : 3 , text : ' Contacts' , icon : ' group' } ,
12+ { id : 4 , text : ' Log out' , icon : ' runner' }
1313] ;
14-
14+ const dropDownOptions = {
15+ height : 150
16+ } ;
1517class App extends React . Component {
1618 logAction ( e ) {
17- console . log ( e . itemData . text + " was clicked" ) ;
19+ console . log ( e . itemData . text + ' was clicked' ) ;
1820 }
1921
2022 logButtonClick ( ) {
21- console . log ( " Main button was clicked" ) ;
23+ console . log ( ' Main button was clicked' ) ;
2224 }
2325
2426 render ( ) {
@@ -32,8 +34,9 @@ class App extends React.Component {
3234 onItemClick = { this . logAction }
3335 splitButton = { true }
3436 onButtonClick = { this . logButtonClick }
37+ dropDownOptions = { dropDownOptions }
3538 />
3639 ) ;
3740 }
3841}
39- export default App ;
42+ export default App ;
0 commit comments