Categories

.externalcontentGadgetContentslider()

Categories: UI

de_epages.externalcontentGadgetContentslider( options )

Subclass: de_epages

Inherit: (Subclass: de_epages) jQuery.Widget()

Plugin: de_epages.externalcontent.gadget.contentslider

Description: Create a contentslider gadget.

  • de_epages.externalcontentGadgetContentslider( options )

    version added: 6.15.1

    options   A map of additional options pass to the method.

de_epages.externalcontentGadgetContentslider() creates a contentslider gadget.
  • Create a simple contentslider gadget with some options.

    HTML:
    <div id="myContentslider"></div>
    Code:
    de_epages('#myContentslider').externalcontentGadgetContentslider({
      automatic: true,
      arrows: true,
      effect: 'scrollLeft',
      'shadow': false,
      'border': 'black',
      'automatic': false,
      'displaytime': 5,
      slides: [{
        'fullpath': 'de_epages/externalcontent/gadget/contentsliderTest_Image1.png',
        'name': 'Test1'
      	}, {
        'fullpath': 'de_epages/externalcontent/gadget/contentsliderTest_Image1.png',
        'name': 'Test2'
        }]
    });
    
    
  • automatic

    version added: 6.15.1

    If true, the contentslider advances from one slide to another automatically.

    Default: true

  • effect

    version added: 6.15.1

    String specifying the animation between the slides. Possible values: fade, scrollLeft, growY, cover and whatever else the cycle plugin supports for its fx option.

    Default: "fade"

  • arrows

    version added: 6.15.1

    If true, show navigation arrows for user to advance manually between slides.

    Default: false

  • shadow

    version added: 6.15.1

    If true, add shadow to contentslider box.

    Default: true

  • border

    version added: 6.15.1

    Border color for contentslider.

    Default: "transparent"

  • slides

    version added: 6.15.1

    Array of slides. A slide is an object with keys: fullpath (String, path to image file), name (String name of image), href (String, optional, href for link to be added around the image), title (String, optional, title for the link around the image).

    Default: []

  • cycleOptions

    version added: 6.15.1

    Options hash to be passed to the underlying instance of the cycle plugin.

    Default: {}