All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ysny.karibu-tools.karibu-tools.0.20.source-code.JsoupUtils.kt Maven / Gradle / Ivy

There is a newer version: 0.21
Show newest version
@file:Suppress("DEPRECATION")

package com.github.mvysny.kaributools

import com.vaadin.flow.server.InitialPageSettings
import org.jsoup.nodes.Element

/**
 * Appends a `` element to the html head. Useful
 * for [com.vaadin.flow.server.BootstrapListener] as a replacement for
 * [com.vaadin.flow.server.PageConfigurator]'s [InitialPageSettings.addMetaTag].
 */
public fun Element.addMetaTag(name: String, content: String): Element =
    appendElement("meta").attr("name", name).attr("content", content)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy