Categories

.externalcontentGadgetGoogleplus()

Categories: UI

.externalcontentGadgetGoogleplus( [ options ] )

Subclass: de_epages

Inherit: (Subclass: de_epages) .widget()

Plugin: de_epages.externalcontent.gadget.googleplus

Description: Inserts Google-Plus button.

  • .externalcontentGadgetGoogleplus( [ options ] )

    version added: 6.15.0

    options   A map of additional options to pass to the method.

The Widget inserts a Google-Plus 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. In this example the Google-Plus button references to the web page of ePages, has the biggest available size and shows the amount of already given +1 for that page in a bubble next to the button.

    Code:
    
    <script>
    		jQuery.ready({
    				plugin: [ 'e_epages.externalcontent.gadget.googleplus' ],   
    				DOM:    true                             			  
    			}, function($){
    				var widget = de_epages('<div>').externalcontentGadgetGoogleplus({
    					href :	"http://www.epages.com/de/",
    					size :	"tall",
    					annotation : "bubble"
    				});
    				
    			});
    </script>
    
    
  • href

    version added: 6.15.0

    A reference to the target page to receive the +1

    Default: undefined

  • size

    version added: 6.15.0

    Defining the size of the Google button. Possible values are: 'small', 'medium', 'standard', 'tall'. The default value is 'standard'

    Default: undefined

  • annotation

    version added: 6.15.0

    The parameter defining the display of the amount of +1 the button target already has. The possible values are: 'inline', 'bubble', 'none'. Default value is 'bubble'

    Default: undefined

  • destroy

    • .externatcontentGadgetGoogleplus('destroy')

      version added: 6.15.0

    This method removes the container on which the Google-Plus button has been appended to.