Class Markdown
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.markdown.Markdown
- All Implemented Interfaces:
AttachNotifier
,DetachNotifier
,HasElement
,HasSize
,HasStyle
,Serializable
@Tag("vaadin-markdown")
@NpmPackage(value="@vaadin/polymer-legacy-adapter",version="24.8.3") @NpmPackage(value="@vaadin/markdown",version="24.8.3")
@JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/markdown/src/vaadin-markdown.js")
public class Markdown
extends Component
implements HasSize
Markdown is a component for rendering Markdown content. It takes Markdown
source as input and renders the corresponding HTML.
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendContent
(String content) Appends the markdown content.Gets the markdown content.void
setContent
(String content) Sets the markdown content.Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
Markdown
public Markdown()Default constructor. Creates an empty Markdown. -
Markdown
Creates a Markdown with content.- Parameters:
content
- the markdown content- See Also:
-
-
Method Details
-
setContent
Sets the markdown content.- Parameters:
content
- the markdown content
-
appendContent
Appends the markdown content.- Parameters:
content
- the markdown content to append
-
getContent
Gets the markdown content.- Returns:
- the markdown content
-