/
Hours
Hours
Description
An input that lets you choose the hour time (0-23).
System Dependencies
Installation
The package can be installed via npm:
npm install empower-inputs --save
Standard Hours
Configuration
import { InputSelectionHandler} from 'empower-inputs';
let [formElement, setFormElement] = useState({
sampleHours: {
id: 'sampleHours',
type: 'hours',
label: "Sample Hours",
maxHours: '23',
value: '',
placeholder: '-',
required: true,
readOnly: false,
disabled: false,
}
});
..............
return (
<>
<InputSelectionHandler
config={formElement.sampleHours}
onChanged={(e) => inputChangedHandler(e, 'sampleHours')}
/>
</>
)
Properties
Parent Parameter | Sub Parameter | Data Type | Constraint |
---|---|---|---|
config |
| JSON Object | Required |
| id | String | Required |
| type | String | Required |
| label | String | Optional |
| value | Array Object | Required |
| placeholder | String | Optional |
| readOnly | Boolean | Optional |
| disabled | Boolean | Optional |
| required | Boolean | Optional |
| maxHours | String | Required |
customClass |
| String | Optional |
onChanged |
| Event Method | Required |
References
Repository Link: https://bitbucket.org/empowerteams/empower-inputs
NPM Package: npm: empower-inputs
Demo Repo: git@bitbucket.org:empowerteams/mfe-sub-application-template.git
, multiple selections available,