I am using http://www.material-ui.com/#/components/dropdown-menu and I would like to configure the log primaryText console from <MenuItem/>. How can i do this?
<MenuItem/>
use onChange(event: object, key: number, value: any)function.
onChange(event: object, key: number, value: any)
The event object has information about the selected item.
you can try
console.log(event.target.textContent)
Source: https://habr.com/ru/post/1651704/More articles:When an SQL DELETE query expires, what happens to the data? - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1651700/how-to-add-files-to-zip-even-when-part-of-exclude-pattern&usg=ALkJrhj__2kt3YxuZcU0IbDh-G5qmD8ZnwJulia: How can I access the type from inside the module? - typesChrome debugger breaks at the wrong point or doesn't work at all (typescript) - debuggingmodprobe: FATAL: nvidia-uvm module not found in / lib / modules / directory - pythonI upgraded to Xcode 8 beta 6 and I get very strange errors - iosForth quicksort issues for large sorted arrays - forthSymfony 3 FileUpload - phpJS Chart Show HTML in Tooltip - javascriptМетоды PowerShell с несколькими настраиваемыми атрибутами - c#All Articles