@Tag(value="rss-items") @NpmPackage(value="@polymer/iron-ajax",version="3.0.1") @NpmPackage(value="@polymer/iron-image",version="3.0.2") @NpmPackage(value="x2js",version="3.4.0") @JsModule(value="./rss-items.js") public class RssItems extends com.vaadin.flow.component.polymertemplate.PolymerTemplate<RssItemsModel> implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle
| Constructor and Description |
|---|
RssItems(String url) |
RssItems(String url,
int max,
int maxTitleLength,
int maxExcerptLength,
boolean extractImageFromDescription) |
RssItems(String url,
int max,
int maxTitleLength,
int maxExcerptLength,
boolean extractImageFromDescription,
String attributeName) |
| Modifier and Type | Method and Description |
|---|---|
void |
setExtractImageFromDescription(boolean extractImageFromDescription) |
void |
setMax(int max)
Sets the maximun number of items to be shown
|
void |
setMaxExcerptLength(int length)
Sets the max title excerpt length
|
void |
setMaxTitleLength(int length)
Sets the max title length
|
getModel, getModelType, getModelType, getStateNode, initModel, isSupportedClassaddListener, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, 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, setWidthFullpublic RssItems(String url, int max, int maxTitleLength, int maxExcerptLength, boolean extractImageFromDescription)
url - rss feed urlmax - max number of items to showpublic RssItems(String url, int max, int maxTitleLength, int maxExcerptLength, boolean extractImageFromDescription, String attributeName)
url - rss feed urlmax - max number of items to showpublic RssItems(String url)
url - rss feed urlpublic void setMaxTitleLength(int length)
length - public void setMaxExcerptLength(int length)
length - public void setMax(int max)
max - public void setExtractImageFromDescription(boolean extractImageFromDescription)
Copyright © 2019–2022 Flowing Code. All rights reserved.