File

core/forms/range.component.ts

Description

An component which renders a range slider in Cumulocity layout. You need to wrap the default range input in this component.

Example:

<c8y-range>
  <input id="range" type="range" min="0" max="100000" value="0" step="1">
</c8y-range>

Implements

OnDestroy

Metadata

Index

Properties
Methods

Methods

ngAfterContentInit
ngAfterContentInit()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
setValue
setValue()
Returns : void

Properties

changeEventListener
Type : EventListener
Default value : () => {...}
left
Type : string
range
Type : RangeDirective
Decorators :
@ContentChild(RangeDirective, {static: true})
rangeValue
Type : TemplateRef<any>
Decorators :
@ContentChild('c8yRangeValue', {static: true})
value
Type : string
<div class="range-wrap" style="--track-width: {{left}}">
  <div class="range-value" [style.left]="left">
    <span *ngIf="!rangeValue">{{ value }}</span>
    <ng-container *ngTemplateOutlet="rangeValue"></ng-container>
  </div>
  <ng-content></ng-content>
</div>

results matching ""

    No results matching ""