@JsModule(value="./code-viewer.ts")
@NpmPackage(value="lit",
version="2.5.0")
public class SourceCodeViewer
extends com.vaadin.flow.component.html.Div
implements com.vaadin.flow.component.HasSize
| Constructor and Description |
|---|
SourceCodeViewer(String sourceUrl) |
SourceCodeViewer(String sourceUrl,
Map<String,String> properties) |
SourceCodeViewer(String url,
String language,
Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
fetchContents(String url,
String language) |
static void |
highlight(String id) |
static <T extends com.vaadin.flow.component.HasElement & com.vaadin.flow.component.ClickNotifier<?>> |
highlightOnClick(T c,
String id) |
static void |
highlightOnHover(com.vaadin.flow.component.Component c,
String id) |
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFulladdClickListener, addClickShortcutgetChildren, getComponentAt, getComponentCount, indexOf, replaceadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllpublic SourceCodeViewer(String sourceUrl)
public static void highlightOnHover(com.vaadin.flow.component.Component c,
String id)
public static <T extends com.vaadin.flow.component.HasElement & com.vaadin.flow.component.ClickNotifier<?>> void highlightOnClick(T c,
String id)
public static void highlight(String id)
Copyright © 2020–2023 Flowing Code. All rights reserved.