Class WhatsappButton
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.flowingcode.vaadin.addons.whatsappbutton.WhatsappButton
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,java.io.Serializable
@Tag("fc-whatsapp-button") @NpmPackage(value="@flowingcode/fc-whatsapp-button", version="1.0.1") @JsModule("@flowingcode/fc-whatsapp-button/dist/src/fc-whatsapp-button.js") public class WhatsappButton extends com.vaadin.flow.component.Component- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WhatsappButton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDialCode()java.lang.StringgetInviteCode()java.lang.StringgetLabel()java.lang.StringgetPhone()java.lang.StringgetText()booleanisLeadingIcon()booleanisRedirect()booleanisResponsive()booleanisShowDialog()voidsetDialCode(java.lang.String dialCode)voidsetInviteCode(java.lang.String inviteCode)voidsetLabel(java.lang.String label)voidsetLeadingIcon(boolean leading)voidsetPhone(java.lang.String phone)voidsetRedirect(boolean redirect)voidsetResponsive(boolean responsive)voidsetShowDialog(boolean dialog)voidsetText(java.lang.String text)-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
-
-
-
-
Method Detail
-
getPhone
public java.lang.String getPhone()
- Returns:
- String return the phone number
-
setPhone
public void setPhone(java.lang.String phone)
- Parameters:
phone- the phone number to set
-
getDialCode
public java.lang.String getDialCode()
- Returns:
- String return the dialCode
-
setDialCode
public void setDialCode(java.lang.String dialCode)
- Parameters:
dialCode- the dialCode to set
-
getLabel
public java.lang.String getLabel()
- Returns:
- String return the label
-
setLabel
public void setLabel(java.lang.String label)
- Parameters:
label- the label to set
-
getText
public java.lang.String getText()
- Returns:
- String return the text
-
setInviteCode
public void setInviteCode(java.lang.String inviteCode)
- Parameters:
text- the text to set
-
getInviteCode
public java.lang.String getInviteCode()
-
setText
public void setText(java.lang.String text)
-
isLeadingIcon
public boolean isLeadingIcon()
-
setLeadingIcon
public void setLeadingIcon(boolean leading)
-
isRedirect
public boolean isRedirect()
-
setRedirect
public void setRedirect(boolean redirect)
-
isResponsive
public boolean isResponsive()
-
setResponsive
public void setResponsive(boolean responsive)
-
isShowDialog
public boolean isShowDialog()
-
setShowDialog
public void setShowDialog(boolean dialog)
-
-