An easy way to use JavaScript dependent MDL components with Scala.js React.
libraryDependencies += "com.payalabs" %%% "scalajs-react-mdl" % "0.2.0-SNAPSHOT"
Write the normal ReactTag for whichever MDL component you would like to use and call .material
at the end:
import com.payalabs.scalajs.react.mdl.MaterialAble div(className := "mdl-button mdl-js-button mdl-button--fab mdl-button--colored")( i(className := "material-icons")("add") ).material
The material
method returns a ReactComponent that will automatically upgrade the element (adding event listeners, ripples, etc.) once it is in the DOM.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4