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

dropdown variable is not setting default selected value by property .activeItem=index of item #65

Open
aniruddhasm opened this issue Mar 21, 2015 · 4 comments
Assignees
Labels

Comments

@aniruddhasm
Copy link

var dropDownSelection;
dropDownSelection = Alloy.Globals.abx.createDropdown({
titles : ["First", "Second", "Third", "Fourth"],
color : "#fff"
});

dropDownSelection.activeItem = 2; // bydefault set Third variable to be selected

@manumaticx manumaticx self-assigned this Mar 23, 2015
@manumaticx manumaticx added the bug label Mar 23, 2015
@aniruddhasm
Copy link
Author

hii any updates..??

@manumaticx
Copy link
Collaborator

Hi, I've just pushed the 1.6.2 update.

You can now pass an index property to the creation object:

var dropDownSelection = Alloy.Globals.abx.createDropdown({
  titles : ["First", "Second", "Third", "Fourth"],
  index: 2
});

@aniruddhasm
Copy link
Author

hi thankyou.... it is working perfectly fine... :)

@manumaticx
Copy link
Collaborator

I'll leave this open as this should work too but does not yet.

dropDownSelection.activeItem = 2;

Still need to figure out why that fails.

@manumaticx manumaticx reopened this Mar 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants