Movatterモバイル変換


[0]ホーム

URL:


CoreUI Angular Logo
Framework:
Getting startedIntroductionSupport CoreUICustomizeSassOptionsCSS VariablesLayoutBreakpointsContainersGridColumnsGuttersFormsOverviewAutocompletePRODate PickerPRODate Range PickerPROForm ControlSelectMulti SelectPROChecks & RadiosPassword InputPRORangeRange SliderPRORatingPROStepperPROInput GroupFloating LabelsLayoutTime PickerPROValidationComponentsAccordionAlertAvatarBadgeBreadcrumbButtonButton GroupCalendarPROCalloutCardCarouselClose buttonCollapseDropdownFooterHeaderImageList GroupLoading ButtonPROModalNavNavbarOffcanvasPaginationPlaceholderPopoverProgressSmart PaginationPROSmart TablePROSidebarSpinnerTableTabsNewToastTooltipWidgetsIconsChartsTemplatesNewAdmin & DashboardDownloadInstallationCustomizeContentMigrationv4 → v5v3 → v4Angular version


DownloadHire UsGet CoreUI PRO
On this page

Angular Range Component

Use our custom Angular Range inputs for consistent cross-browser styling and built-in customization.

Overview

Create custom range controls with<input cFormControl type="range">. The track (the background) and thumb (thevalue) are both styled to appear the same across browsers. As only Edge Legacy and Firefox supports "filling" theirtrack from the left or right of the thumb as a means to visually indicate progress, we do not currently support it.

Loading...
Loading...

Disabled

Add thedisabled boolean attribute on an input to give it a grayed out appearance and remove pointer events.

Loading...
Loading...

Min and max

Range inputs have implicit values formin="0" andmax="100", respectively. You may specify new values for those using themin andmax attributes.

Loading...
Loading...

Steps

By default, range inputs "snap" to integer values. To change this, you can specify a step value. In the example below, we double the number of steps by usingstep="0.5".

Loading...
Loading...

API reference

Form Module


cFormControl

type="range"directive

Inputs
namedescriptiontypedefault
maxSpecifies the maximum value for the component.number100
minSpecifies the minimum value for the component.number0
stepsSpecifies the interval between legal numbers in the component.number1
typeSpecifies the html type of input element.rangerequired
valueThe value attribute of the input.number(max-min)/2
disabledToggle the disabled state for the component.booleanfalse

CoreUI for Angular is Open Source UI Components Library for Angular.

Currently v5.5.17 Code licensed MIT, docs CC BY 3.0 .
CoreUI PRO requires acommercial license.


[8]ページ先頭

©2009-2025 Movatter.jp