Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

bijupmb
Copy link
Contributor

@bijupmb bijupmb commented May 24, 2013

added a new property calendarViewShown

https://jira.appcelerator.org/browse/TIMOB-12539

/**
* @module.api
*/
public static final String PROPERTY_CALENDAR_VIEW_SHOWN = "calendarViewShown";
Copy link
Contributor

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

@ayeung
Copy link
Contributor

ayeung commented Jun 20, 2013

Code reviewed. This PR needs to have a valid test case in the ticket.

@ghost ghost assigned vishalduggal Jul 1, 2013
public void setCalendarView(boolean value)
{
DatePicker picker = (DatePicker) getNativeView();
picker.setCalendarViewShown(value);
Copy link
Contributor

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));
}
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will correct.

@vishalduggal
Copy link
Contributor

Docs need to be updated.

@hieupham007
Copy link
Contributor

Any update on this PR? Also, please provide a valid test case for this new feature.

@bijupmb
Copy link
Contributor Author

bijupmb commented Sep 6, 2013

new test case added

@hieupham007
Copy link
Contributor

Please add documentation to this PR. Also please merge with master, and add testing steps + expected result to the test case in JIRA.

@hieupham007
Copy link
Contributor

Duplicate of #4667. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants