Right class for sliders in gnome shell extensions?

I am seeing a class Slider being used in extensions, like so:

const Slider = imports.ui.slider;

this._redSlider = new Slider.Slider(0);

but I am also seeing this in the documentation:

Which one is the correct one?

GNOME Shell does not use GTK, so you should not read the GTK documentation when writing extensions.

Please read the Extensions guide for more information on writing Shell extensions.

1 Like

Great, thanks, I’ll check it out!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.