@axa-fr/react-toolkit-form-input-slider v3.0.1
@axa-fr/react-toolkit-form-input-slider
Slider
Installation
npm i @axa-fr/react-toolkit-form-input-slider
npm i @axa-fr/react-toolkit-form-core
Import
import { Slider } from '@axa-fr/react-toolkit-form-input-slider';
import '@axa-fr/react-toolkit-form-input-slider/dist/af-slider.css';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
Use
const options = [
{ label: '64', value: 64 },
{ label: '128', value: 128 },
{ label: '256', value: 256 },
{ label: '1024', value: 1024 },
{ label: '2048', value: 2048 },
{ label: '4096', value: 4096 },
];
const SliderInput = () => (
<form className="af-form" name="myform">
<Slider
id="uniqueid"
name="sliderName"
options={options}
value={2048}
onChange={() => console.log('your function')}
/>
</form>
);
export default SliderInput;
SliderInput
Installation
npm i @axa-fr/react-toolkit-form-input-slider
npm i @axa-fr/react-toolkit-form-core
Import
import { SliderInput } from '@axa-fr/react-toolkit-form-input-slider';
import '@axa-fr/react-toolkit-form-input-slider/dist/af-slider.css';
import { MessageTypes } from '@axa-fr/react-toolkit-form-core';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
Use
const options = [
{ label: '64', value: 64 },
{ label: '128', value: 128 },
{ label: '256', value: 256 },
{ label: '1024', value: 1024 },
{ label: '2048', value: 2048 },
{ label: '4096', value: 4096 },
];
const SliderInputReturn = () => (
<form className="af-form" name="myform">
<SliderInput
id="uniqueid"
name="sliderInputName"
label="Place name"
options={options}
value={1024}
helpMessage="Enter the place name, ex : Webcenter"
messageType={MessageTypes.error}
onChange={() => console.log('your function')}
classNameContainerLabel="col-md-2"
classNameContainerInput="col-md-10"
/>
</form>
);
export default SliderInputReturn;
SliderInput Required
To achieve SliderInput Required, you need to add this :
classModifier = 'required';
to the SliderInput component
1 month ago
1 month ago
2 months ago
2 months ago
3 months ago
7 months ago
7 months ago
8 months ago
8 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago