
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@angular2-material/slider
Advanced tools
MdSlider is a component that allows users to select from a range of values by moving the slider
thumb.
You can read more about the slider in the
Material Design spec.
Importing the module:
@NgModule({
imports: [MdSliderModule],
...
})
export class MyAppModule { }
md-slider can be used on its own as a slider with a min of 0, a max of 100, and a step of 1.
<md-slider></md-slider>
The min and max on a md-slider can be set to give a different range of values.
These can be set individually and do not need to both be set.
<md-slider min="1" max="5"></md-slider>
md-slider can be disabled so that the value cannot be changed and the thumb cannot be moved.
<md-slider disabled></md-slider>
md-slider can have a value defined so that it starts at a specific value on the slider.
<md-slider value="24"></md-slider>
md-slider can have the step defined which declares where the thumb can snap to.
<md-slider step="5"></md-slider>
md-slider can have a tick interval set to a number or to auto.
auto will automatically draw tick marks on steps that are at least 30px apart and will always draw
tick marks at the beginning and end of the slider.
Setting tick-interval to a number will draw a tick mark at every tick-interval steps. An example
of this is a tick-interval of 3 with a step of 4 will draw tick marks at every 3 steps,
which is the same as every 12 values.
<md-slider tick-interval="auto"></md-slider>
<md-slider tick-interval="3" step="4"></md-slider>
<md-slider>| Name | Type | Description |
|---|---|---|
min | number | Optional, the minimum number for the slider. Default = 0. |
max | number | Optional, the maximum number for the slider. Default = 100. |
value | number | Optional, the value to start the slider at. |
tick-interval | `"auto" | number` |
step | number | Optional, declares where the thumb will snap to. Default = 1. |
disabled | boolean | Optional, whether or not the slider is disabled. Default = false. |
FAQs
Angular 2 Material Slider
The npm package @angular2-material/slider receives a total of 12 weekly downloads. As such, @angular2-material/slider popularity was classified as not popular.
We found that @angular2-material/slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.