Created
January 5, 2017 19:27
-
-
Save LewisRhine/2407d7aa4a6c73c3b3b9b87e6abc3c02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun content(title: String, cssClassId: String = "", body: Element.() -> Unit) = Content(title, cssClassId, body) | |
class Content(val title: String, cssClassId: String = "", body: Element.() -> Unit) : MdlComponent("div", "mdl-layout__content", cssClassId) { | |
init { | |
mainElement.body() | |
} | |
} | |
interface MdlContent { | |
val content: Content | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment