Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shiv19 authored Dec 18, 2017
1 parent b0552b3 commit f2cd45d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@ tns plugin add nativescript-modal-datetimepicker

## Configuration

For android, the clock style can be `clock` or `spinner`
For android, the calendar style can be `calendar` or `spinner`

This can be changed in `App_Resources/Android/values-21/styles.xml`
```xml
<!-- Default style for DatePicker - in spinner mode -->
<style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker">
<item name="android:datePickerMode">calendar</item>
</style>

<!-- Default style for TimePicker - in spinner mode -->
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker">
<item name="android:timePickerMode">clock</item>
</style>
```

## Usage

NativeScript Core

```js
Expand Down

0 comments on commit f2cd45d

Please sign in to comment.