New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-12539] added a new property calendarViewShown #4328
Conversation
/** | ||
* @module.api | ||
*/ | ||
public static final String PROPERTY_CALENDAR_VIEW_SHOWN = "calendarViewShown"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
properties are sorted alphabetically.. please place this in the correct spot instead of adding it at the end
Code reviewed. This PR needs to have a valid test case in the ticket. |
public void setCalendarView(boolean value) | ||
{ | ||
DatePicker picker = (DatePicker) getNativeView(); | ||
picker.setCalendarViewShown(value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This call must be inside an API LEVEL CHECK >= 11
@@ -82,6 +85,9 @@ public void processProperties(KrollDict d) { | |||
|
|||
this.maxDate = maxDateCalendar.getTime(); | |||
} | |||
if (d.containsKey(TiC.PROPERTY_CALENDAR_VIEW_SHOWN)) { | |||
setCalendarView(TiConvert.toBoolean(d, TiC.PROPERTY_CALENDAR_VIEW_SHOWN)); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole block is formatted incorrectly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will correct.
Docs need to be updated. |
Any update on this PR? Also, please provide a valid test case for this new feature. |
new test case added |
Please add documentation to this PR. Also please merge with master, and add testing steps + expected result to the test case in JIRA. |
Duplicate of #4667. Closing. |
added a new property calendarViewShown
https://jira.appcelerator.org/browse/TIMOB-12539