roundslider - Forum

Forum Navigation
You need to log in to create posts and topics.

roundslider

How can we create a roundslider in visualneo web?

I have found some samples in below site but I could not use them in visualneo web.

https://roundsliderui.com/demos.html

@asmat take a look at my attached sample.
I have loaded the JQuery plugin from a CDN (look into Project > Properties > Advanced > Custom Metadata > Body)
It's important the name you give to the Container as must be the same than in the sample code.

Uploaded files:
  • You need to login to have access to uploads.

Thank you so much Luishp!

BeginJS
$("#slider_event").roundSlider({
    handleShape: "dot",
    radius: 130,
    width: 25,
    sliderType: "range",
    value: "20,92",
    beforeCreate: "traceEvent",
    create: "traceEvent",
    start: "traceEvent",
    stop: "traceEvent",
    change: "traceEvent",
    drag: "traceEvent"
});


function traceEvent(e) {
    console.log(e.type);
}
EndJS

In above, How can I call neoSubroutine instead of traceEvent function?

@asmat, it's is as easy as this. Take a look at the attached app to see how to get the parameters into your subroutine.

NeoScriptToJS
BeginJS
$("#slider").roundSlider({
        handleShape: "dot",
        radius: 130,
        width: 25,
        sliderType: "range",
        value: "20,92",
        beforeCreate: neosubroutine.mysubroutine,
        create: neosubroutine.mysubroutine,
        start: neosubroutine.mysubroutine,
        stop: neosubroutine.mysubroutine,
        change: neosubroutine.mysubroutine,
        drag: neosubroutine.mysubroutine,
});
EndJS

 

Uploaded files:
  • You need to login to have access to uploads.
CDY@44 and asmat have reacted to this post.
CDY@44asmat

Hi Luis,
Very interesting !
How can we get the values to send them to a variable ?
Regards,

Denis

asmat has reacted to this post.
asmat

How can we get the values to send them to a variable ?

Use [parameter.value]

Of course ! I am silly !
Thank you Ronnie !

When I drag the handles in the below slider shape, the roundslider goes up, How can I solve this problem?

Uploaded files:
  • You need to login to have access to uploads.

When I drag the handles in the below slider shape, the roundslider goes up, How can I solve this problem?

Just select your Container object ("slider" in your sample app) and set overflow-x and overflow-y style properties to "visible"