.externalcontentGadgetTwitter()
Categories: UI
.externalcontentGadgetTwitter( [ options ] )
Subclass: de_epages
Inherit: (Subclass: de_epages) .widget()
Plugin: de_epages.externalcontent.gadget.twitter
Description: Inserts twitter button.
-
.externalcontentGadgetTwitter( [ options ] )
version added: 6.15.0options A map of additional options to pass to the method.
The Widget inserts a twitter button into the target element on which the widget is executed on.
-
The Widget is executed on a pageelement and is called with passing optional parameters. The Widget adds a Tweet (share) button to the page element which shows the as default displayed string "Look at this amazing page!" after klicking on the button.
Code:
<script> jQuery.ready({ plugin: [ 'e_epages.externalcontent.gadget.twitter' ], DOM: true }, function($){ var widget = de_epages('<div>').externalcontentGadgettwitter({ type : "share", text : "Look at this amazing page!" }); }); </script>
-
The Widget is executed on a pageelement and is called with passing optional parameters. The Widget adds a Follow button to the page element which makes the user follow the Twitteraccount with the passed name "MyFlowerShop".
Code:
<script> jQuery.ready({ plugin: [ 'e_epages.externalcontent.gadget.twitter' ], DOM: true }, function($){ var widget = de_epages('<div>').externalcontentGadgettwitter({ type : "follow", username : "MyFlowerShop" }); }); </script>
-
The Widget is executed on a pageelement and is called with passing optional parameters. The Widget adds a Twitter search widget which shows all Tweets of the last days with the given searchterm in it. The Title and subject are displayed in the frame of the Widget. The Widget will have the given height and width.
Code:
<script> jQuery.ready({ plugin: [ 'e_epages.externalcontent.gadget.twitter' ], DOM: true }, function($){ var widget = de_epages('<div>').externalcontentGadgettwitter({ type : "search", searchterm : "Tulips", title : "the most wanted Flowers", subject : "by MyFlowerShop", width : 250, height : 400 }); }); </script>
-
The Widget is executed on a pageelement and is called with passing optional parameters. The Widget adds a Twitter profile widget which shows all Tweets of the passed username in the Widget, it will have the given height and width. The shellbackground is the option for the color of the frame around the widget entries, the shellcolor is the one of the the text in the widgetframe. The tweetbackground is the color of the background of the tweet field, the tweetcolor defines the color of the tweetfont and the parameter tweetlink passes the color that in tweets posted links have.
Code:
<script> jQuery.ready({ plugin: [ 'e_epages.externalcontent.gadget.twitter' ], DOM: true }, function($){ var widget = de_epages('<div>').externalcontentGadgettwitter({ type : "profile", username: "MyFlowerShop" width : 250, height : 300, shellbackground : '#8ec1da', shellcolor : '#ffffff', tweetbackground : '#ffffff', tweetcolor : '#444444', tweetlinks : '#1985b5', }); }); </script>
-
destroy
-
.externatcontentGadgetTwitter('destroy')
version added: 6.15.0
This method removes the container on which the Google-Plus button has been appended to.
-