com.github.woojiahao.style.elements.table.TableHeader.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kMD2PDF Show documentation
Show all versions of kMD2PDF Show documentation
Simple and highly customizable markdown to PDF conversion library
package com.github.woojiahao.style.elements.table
import com.github.woojiahao.style.css.CssProperty
import com.github.woojiahao.style.elements.Element
import com.github.woojiahao.style.utility.Border
import com.github.woojiahao.style.utility.Border.BorderStyle.SOLID
import com.github.woojiahao.style.utility.BorderBox
import com.github.woojiahao.style.utility.Box
import com.github.woojiahao.style.utility.px
import com.github.woojiahao.utility.c
import java.awt.Color
class TableHeader : Element("th") {
init {
val border by CssProperty(
BorderBox(Border(1.0.px, SOLID, Color.BLACK)),
BorderBox(Border(1.0.px, SOLID, c("EE")))
)
this.border = border
fontWeight = FontWeight.BOLD
padding = Box(5.0.px)
}
}