Skip to content

Instantly share code, notes, and snippets.

@LewisRhine
Created January 5, 2017 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LewisRhine/2407d7aa4a6c73c3b3b9b87e6abc3c02 to your computer and use it in GitHub Desktop.
Save LewisRhine/2407d7aa4a6c73c3b3b9b87e6abc3c02 to your computer and use it in GitHub Desktop.
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