XWidgetSoft Forum
https://xwidget.com/bbs/

Slider Widget ?
https://xwidget.com/bbs/viewtopic.php?f=8&t=6434
Page 1 of 1

Author:  Rom [ September 16th, 2016, 3:46 am ]
Post subject:  Slider Widget ?

Hi, I'm new to the forum and would like some help to create a widget ... I'm trying to create a Slider widget in JavaScript but I can not. Is a person have a code or some explanation see even a tutorial ? Thank you :)

Author:  Jimking [ September 16th, 2016, 4:27 am ]
Post subject:  Re: Slider Widget ?

The designer supports the creation of the slide layers so no need special js to create it from the scratch.
Same thing for the tag codes that are already exist for that function. :)
You can also use this code to control multiple slidepanels depending of what you want to do.

slidepanel1.slided = !slidepanel1.slided;

Author:  Rom [ September 16th, 2016, 4:34 am ]
Post subject:  Re: Slider Widget ?

thanks but i want the same effect of this widget "Eker Apps Tab" . Tanks

Author:  Jimking [ September 16th, 2016, 5:05 am ]
Post subject:  Re: Slider Widget ?

Rom wrote:
thanks but i want the same effect of this widget "Eker Apps Tab" . Tanks

Could you please send me the link of this ""Eker Apps Tab" widget..? Is for XWidget or Rainmeter..

I have many widgets with slide function in my gallery so maybe I can send you a similar one..

Author:  Rom [ September 16th, 2016, 5:15 am ]
Post subject:  Re: Slider Widget ?

no probleme => https://www.sendspace.com/file/jxfmlo

Author:  Jimking [ September 16th, 2016, 5:42 am ]
Post subject:  Re: Slider Widget ?

Let me check what particular has this widget.
The best way to learn is to take a ready widget, 'look inside' and see how the things work.

Author:  Rom [ September 16th, 2016, 5:46 am ]
Post subject:  Re: Slider Widget ?

i have look inside but i'm novice on java....and i don't understand the subtilities....sorry for my bad english :/

Author:  Jimking [ September 16th, 2016, 6:13 am ]
Post subject:  Re: Slider Widget ?

Rom wrote:
i have look inside but i'm novice on java....and i don't understand the subtilities....sorry for my bad english :/

Hmm.. You selected not a simple widget Rom :)
..and for a novice user on java it's hard to explain what each line/part does.. You can take this widget and replace the images with yours leaving the same script. But surely it will be not an easy job..

I'm not the expert here on js, but I suggest you to start with something more easy and clean.
Personally when I started to use XWidget I had no idea about js but starting from simple widgets and looking inside I started to understand how it works. I suggest you to do like this way.

Author:  Rom [ September 16th, 2016, 9:40 am ]
Post subject:  Re: Slider Widget ?

ok and do you have a simple code for the same effect ?

My projet
Image

Author:  Jimking [ September 16th, 2016, 11:45 am ]
Post subject:  Re: Slider Widget ?

Hmm.. You can use some 'tricks' using slidepanels and layers that don't need special js. So when you click on a button a slidepanel will open and the rest will close etc.
A javascript works when you have the right components in place. So depends also on this. I'm sorry but this period I'm busy to create something similar and send you a demo. You need to make some tests by yourself

Author:  Rom [ September 16th, 2016, 12:01 pm ]
Post subject:  Re: Slider Widget ?

I try with slidepanel but I can not seem to have more or the same effect

Author:  Jimking [ September 16th, 2016, 12:20 pm ]
Post subject:  Re: Slider Widget ?

Remember that IN the sidepanel you can put anything you want that will follow the movement. Only needs some tricky moves

Author:  Rom [ September 18th, 2016, 3:24 am ]
Post subject:  Re: Slider Widget ?

ok i try today thanks :)

Edit : Do you have a code just for slidepanel In ? or slidepanel Out ?
Code:
slidepanel1.slided = !SlidePanelIn;
Does't work

Author:  Jimking [ September 18th, 2016, 11:15 pm ]
Post subject:  Re: Slider Widget ?

That code is wrong.. Here what you can use:

Slide in/out:
Code:
slidepanel1.slided = !slidepanel1.slided;

Slide in/out multiple slidepanels:
Code:
slidepanel1.slided = !slidepanel1.slided;
slidepanel2.slided = !slidepanel2.slided;

Slide in:
Code:
widget.cmd("!SlidePanelIn=slidepanel1");

Slide out:
Code:
widget.cmd("!SlidePanelOut=slidepanel1");

Author:  Rom [ September 18th, 2016, 11:46 pm ]
Post subject:  Re: Slider Widget ?

thanks :)

Author:  Rom [ September 19th, 2016, 9:54 am ]
Post subject:  Re: Slider Widget ?

Hi thanks for your help but i have a little bug....Do you have the code for direction left or right ?

Author:  Jimking [ September 20th, 2016, 9:06 am ]
Post subject:  Re: Slider Widget ?

Rom wrote:
Hi thanks for your help but i have a little bug....Do you have the code for direction left or right ?

The slidepanel component has settings by itself on the right tab of the designer. You don't need code for that.
You can choose the slide direction from there

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/