Class DropdownShareEasy
java.lang.Object
com.flowingcode.vaadin.addons.shareeasy.DropdownShareEasy
Represents a
ShareEasy instance with Dropdown mode.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DropdownShareEasycreate()voidforComponent(com.vaadin.flow.component.Component component) Initializes the Sharee component with the specified Vaadin component.elemental.json.JsonObjectGets the JSON representation of the Sharee options.withAnimation(Animation animation) withCustomDrivers(Map<String, CustomDriverOptions> customDrivers) Sets custom drivers (new social options).withCustomLanguageKeys(LanguageKeys languageKeys) Sets custom language keys for the default locale.withCustomLanguageKeys(String locale, LanguageKeys languageKeys) Sets custom language keys for the specified locale.withLocale(Locale locale) Sets the language to be displayed.withRipple(boolean ripple) Enables or disables the ripple effect.withShareLink(String shareLink) Sets the share link for the shared content.withShareText(String shareText) Sets the share text for the shared content.withShowTransitionDuration(String showTransitionDuration) Sets the duration of the show transition for sharing.
-
Field Details
-
type
-
animation
-
-
Constructor Details
-
DropdownShareEasy
public DropdownShareEasy()
-
-
Method Details
-
create
-
getJsonObjectOptions
public elemental.json.JsonObject getJsonObjectOptions()Gets the JSON representation of the Sharee options.- Returns:
- The JsonObject representing the Sharee options
-
withRipple
Enables or disables the ripple effect.- Parameters:
ripple- True to enable the ripple effect, false to disable- Returns:
- The current instance of the BaseSharee class
-
withShowTransitionDuration
Sets the duration of the show transition for sharing.- Parameters:
showTransitionDuration- The duration of the show transition- Returns:
- The current instance of the BaseSharee class
-
forComponent
public void forComponent(com.vaadin.flow.component.Component component) Initializes the Sharee component with the specified Vaadin component.- Parameters:
component- The Vaadin component to associate with the Sharee instance
-
withCustomDrivers
Sets custom drivers (new social options).- Parameters:
customDrivers- The custom drivers- Returns:
- The current instance of the BaseSharee class
-