SliderProps

The slider widget allows users to render native sliders into their apps. It is based on the NodeGui's QSlider

Usage#

<template>
<vn-view>
<vn-slider v-model="sliderValue" :maximum="100" :minimum="10" :orientation="1" />
<vn-text>The slider value is: {{sliderValue}}</vn-text>
</vn-view>
</template>
<script>
import { ref } from 'vue';
export default {
setup() {
const sliderValue = ref(0);
return {
sliderValue
}
}
};
</script>

What it looks like?#

vn-slider-demo

Props and styling#

You can find all the props vn-slider accepts listed below. Apart from this, you can take a look at the styling and event handling docs

Hierarchy#

Index#

Properties#

Properties#

Optional enabled#

• enabled? : undefined | false | true

Inherited from ViewProps.enabled

Sets the property that tells whether the widget is enabled. In general an enabled widget handles keyboard and mouse events; a disabled widget does not. QWidget: setEnabled


Optional hasTracking#

• hasTracking? : undefined | false | true


Optional id#

• id? : undefined | string

Inherited from ViewProps.id

Sets the object name (id) of the widget in Qt. Object name can be analogous to id of an element in the web world. Using the objectName of the widget one can reference it in the Qt's stylesheet much like what we do with id in the web world. QWidget: setObjectName


Optional invertedAppearance#

• invertedAppearance? : undefined | false | true


Optional invertedControls#

• invertedControls? : undefined | false | true


Optional isSliderDown#

• isSliderDown? : undefined | false | true


Optional maximum#

• maximum? : undefined | number


Optional minimum#

• minimum? : undefined | number


Optional mouseTracking#

• mouseTracking? : undefined | false | true

Inherited from ViewProps.mouseTracking

Sets the property that tells whether mouseTracking is enabled for the widget. QWidget: setMouseTracking


Optional orientation#

• orientation? : Orientation


Optional pageStep#

• pageStep? : undefined | number


Optional singleStep#

• singleStep? : undefined | number


Optional sliderPosition#

• sliderPosition? : undefined | number


Optional style#

• style? : undefined | string

Inherited from ViewProps.style

Sets the inline stylesheet property. QWidget: setInlineStyle


Optional styleSheet#

• styleSheet? : undefined | string

Inherited from ViewProps.styleSheet

Sets the property that holds the widget's style sheet. QWidget: setStyleSheet


Optional tickInterval#

• tickInterval? : undefined | number


Optional tickPosition#

• tickPosition? : TickPosition


Optional value#

• value? : undefined | number


Optional visible#

• visible? : undefined | false | true

Inherited from ViewProps.visible

Shows or hides the widget and its children. QWidget: show


Optional windowOpacity#

• windowOpacity? : undefined | number

Inherited from ViewProps.windowOpacity

This property holds the level of opacity for the window. QWidget: setWindowOpacity


Optional windowTitle#

• windowTitle? : undefined | string

Inherited from ViewProps.windowTitle

Sets the window title property. QWidget: setWindowTitle