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-15580 add setSubTitle property and method #4908

Merged

Conversation

bijupmb
Copy link
Contributor

@bijupmb bijupmb commented Nov 4, 2013

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

Working subtitle as method ( actionBar.setSubTitle("New sub Title"); )
But not work this as property . how can I implement this as property ?

@bijupmb
Copy link
Contributor Author

bijupmb commented Nov 4, 2013

Document not updated will update after set setsubtitle as property

private static final String SHOW_HOME_AS_UP = "showHomeAsUp";
private static final String BACKGROUND_IMAGE = "backgroundImage";
private static final String TITLE = "title";
private static final String LOGO = "logo";
private static final String ICON = "icon";
private static final String NAVIGATION_MODE = "navigationMode";

private static final String SUBTITLE = "subtitle";
Copy link
Contributor

Choose a reason for hiding this comment

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

Use TiC.PROPERTY_SUBTITLE.

@pingwang2011
Copy link
Contributor

What do you mean by "But not work this as property"? If you want get the value of this property, you need to implement a getter. Something like getTitle() in this class.

@ghost ghost assigned pingwang2011 Nov 18, 2013
@bijupmb
Copy link
Contributor Author

bijupmb commented Nov 20, 2013

works on it . still actionBar.subtitle = "New sub Title" not working :( after implement
@Kroll.method @Kroll.getProperty
public String getSubTitle()
{
........
}

@pingwang2011
Copy link
Contributor

If the property name is "subtitle", the setter should be setSubtitle() and the getter should be getSubtitle().

@bijupmb
Copy link
Contributor Author

bijupmb commented Dec 3, 2013

will change

@pingwang2011
Copy link
Contributor

Code reviewed and functionally tested. Accepted

pingwang2011 added a commit that referenced this pull request Dec 10, 2013
…ionBar

TIMOB-15580 add setSubTitle property and method
@pingwang2011 pingwang2011 merged commit a967a03 into tidev:master Dec 10, 2013
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

2 participants