Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbreuler committed May 13, 2020
2 parents 0a2266e + de61694 commit e734870
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Duration Picker/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Duration Picker
A react based duration picker that allows user to enter hours and minutes manually, by clicking the arrows, or using key press events on the chevrons.
A react based duration picker that allows users to enter hours and minutes manually, by clicking the chevrons or manually entering time up to 24 hours.

Accepted input events:
- Manual text entry (digits only)
- Click
- Click and hold
- Click space bar or enter key while focused a chevron element
- Hold space bar or enter key while focused a chevron element

Holding will cause the increment/decrement action to accelerate.

![Duration Picker Control](./durationPicker/img/DurationPicker.gif)

Expand All @@ -9,7 +18,5 @@ A react based duration picker that allows user to enter hours and minutes manual
3. Run `npm start` to test things out.

## How to install
- Reference the Microsft Docs [import custom controls](https://docs.microsoft.com/en-us/powerapps/developer/component-framework/import-custom-controls) article.

## Notes
- To disable stepping minutes by 5 set remove the property `allowSteppedVariation` from the index file in the `IDurationPickerProps` object.
- Grab a copy from the [releases section](https://github.com/paulbreuler/PCF-Controls/releases)
- If you choose to fork this repo and modify the code reference the Microsft Docs [import custom controls](https://docs.microsoft.com/en-us/powerapps/developer/component-framework/import-custom-controls) article.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Paul Breuler

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit e734870

Please sign in to comment.