Opened 10 years ago

Closed 6 years ago

#9262 closed enhancement (invalid)

[patch] [cla] Slideshow widget enhancement request [mofified source included, for review and adaptation]

Reported by: David Leonardi Owned by: David Leonardi
Priority: high Milestone: future
Component: DojoX Widgets Version: 1.3.0
Keywords: slideshow, dynamicscale, dojox.image.slideshow Cc:
Blocked By: Blocking:

Description (last modified by bill)

Hello, I'd like to propose a new functionality to dojox slideshow widget:

-a new option [dynamicscale] which can be used to place the slideshow in fullscreen as background of the viewport

parameters added:

dynamicScale(bool) : enables or disables dynamic scaling

startwidth(int): minimum size to display image at, using dynamicscale, will be divided by the divider below

startheight(int): minimum size to display image at, using dynamicScale, will be divided by the divider below

minsize(number, typically 0.5): divider for dynamicscale

How to use?

Programmatic example:

			var filestore = new dojo.data.ItemFileReadStore ({
 			 	url: "path_to_json"
 			 });
			
			var slideshow = new dojox.image.SlideShow({
				startwidth: 1440,
				startHeight: 900,
				slideShowInterval: 10,
				loop: true,
				imageLargeAttr: "unescapedUrl",
				autoLoad: true,
				id: 'defaultslideshow',
				autoStart: false,
				dynamicScale: true
			});
			
	        dojo.place(slideshow.domNode, dojo.body());	
	
			dojo.style(dijit.byId("defaultslideshow").domNode, {
				"position": "absolute",
				"left": "0px",
				"top": "0px",
				"width": "100%",
				"height": "100%",
				"text-align": "left",
				"margin": "0px",
				"padding": "0px",
				"z-index": "-1",
				"border": "none"
        	});
        	

        	
				
		slideshow.setDataStore(
    	  filestore,
      		{ query: {}, count:1 },
     		{
        imageThumbAttr: "thumb",
        imageLargeAttr: "large"
      		}
    	);

===

additional fixes to the code, include a delay between the hide/show of the images, to allow slower javascript implementations to not flicker between transitions.

The code needs some review, prior to integration.

Attachments (1)

SlideShow_modif.js (21.3 KB) - added by David Leonardi 10 years ago.
SlideShow? modification

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by David Leonardi

Attachment: SlideShow_modif.js added

SlideShow? modification

comment:1 Changed 10 years ago by dante

Owner: changed from dante to Shane O'Sullivan

comment:2 Changed 9 years ago by bill

Description: modified (diff)
Milestone: tbd1.5
Summary: Slideshow widget enhancement request [mofified source included, for review and adaptation][patch] [cla] Slideshow widget enhancement request [mofified source included, for review and adaptation]

Related to #9383? Is #9383 a superset of this?

Marking as 1.5 to clear TBD tickets from 1.4 list.

comment:3 Changed 9 years ago by Adam Peller

Milestone: 1.51.6

comment:4 Changed 8 years ago by bill

Milestone: 1.6future

(sadly) punting seemingly abandoned ticket and meta tickets to future

comment:5 Changed 6 years ago by Kitson Kelly

Owner: changed from Shane O'Sullivan to David Leonardi
Status: newpending

This component was abandoned by the developer. If you are still interested in this patch, if you could resubmit against trunk and we can look at getting it in, but it is unlikely this component will make Dojo 2.0.

comment:6 Changed 6 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.