0.0.5 • Published 2 years ago

@amauta/input-range v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Built With Stencil

Amauta Input Range

Web component

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledbooleanfalse
inputIdinput_idstring''
labellabelstring''
maxmaxnumber5
minminnumber0
paramClassparam_classany{ containerClass: 'container-class', labelClass: 'label-class', containerInputClass: 'container-input-class', inputClass: 'input-class' }
readonlyreadonlybooleanfalse
stepstepnumber0.5
typeValidatetype_validatestring''
validFormvalid_formbooleanfalse
valuevalueany0

Events

EventDescriptionType
eventOnChangeCustomEvent<any>

Built with StencilJS

Install web component in Angular project

  • Run npm i @amauta/input-range
  • Put a script tag in main.js file

    import * as inputRangeCustomElements from '@iparadise71/input-range/loader';
    
    // @ts-ignore
    inputRangeCustomElements.defineCustomElements().catch(err => console.error(err));
  • Use in components html

    <amauta-input-range 
        input_id='{input}'
        label="Select range"
        readonly='false'
        disabled='false'
        min='0'
        max='5'
        step='0.5'
        value='2.5'
        (eventOnChange)="myFunction($event)"
    >
    </amauta-input-range>
0.0.5

2 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago