diff options
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/html/Label.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/html/Label.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/html/Label.kt b/src/main/kotlin/pl/treksoft/kvision/html/Label.kt index 41406cf2..827c90fd 100644 --- a/src/main/kotlin/pl/treksoft/kvision/html/Label.kt +++ b/src/main/kotlin/pl/treksoft/kvision/html/Label.kt @@ -30,13 +30,16 @@ import pl.treksoft.kvision.core.Container * @param content label text * @param rich determines if [content] can contain HTML code */ -open class Label(content: String? = null, rich: Boolean = false) : Tag(TAG.SPAN, content, rich) { +@Deprecated("Use Span class instead.") +open class Label(content: String? = null, rich: Boolean = false) : Span(content, rich) { companion object { /** * DSL builder extension function. * * It takes the same parameters as the constructor of the built component. */ + @Deprecated("User Span.Companion.span function instead.") + @Suppress("DEPRECATION") fun Container.label( content: String? = null, rich: Boolean = false, init: (Label.() -> Unit)? = null ): Label { |