简体   繁体   中英

Implement Dropdown List using Sproutcore 1.6

As the title, I want to implement a dropdown list using Sproutcore 1.6.

I searched some relevant view in the document, there are: SelectView , SelectFieldView .

  1. Anybody who has done that before, which is the best option for that?

  2. Also, I want to put the dropdown list in a parent view, which is the best view for this parent view? Is that just SC.View ?

Thanks everyone.

In the documentation for SC.SelectFieldView , it says

DEPRECATED. Use SelectView instead.

So that pretty much answers it.

You can put the select field in any view you want.

Be warned though, performance can get bad if you have more than 2-3 dozen options.

In that case, I would use native select tags and handle all the events and options myself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM