Skip to content

Implement text dropdown field #374

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

Closed
tmickel opened this issue Jun 8, 2016 · 2 comments
Closed

Implement text dropdown field #374

tmickel opened this issue Jun 8, 2016 · 2 comments
Assignees
Milestone

Comments

@tmickel
Copy link
Contributor

tmickel commented Jun 8, 2016

Requirements:

#148

  1. Displays text in a list:
    screen shot 2016-06-08 at 11 50 48 am
  2. Can display separators as above.
  3. Text of selected item is displayed in the block.
  4. As an option, text is also editable to arbitrary values in the block:
    screen shot 2016-06-08 at 11 52 27 am
    Perhaps this should actually be implemented as an extension to field_textinput, and non-editable dropdowns should be field_dropdown? Thoughts?
  5. If the number of options is too many to fit in the workspace (even after trying to "flip up"), deal with scrolling within the dropdown. It should be scrollable using the mousewheel (e.g., just by using CSS overflow: auto) and also probably have arrows at the top/bottom of the drop-down, which when hovered over, trigger scroll:
    screen shot 2016-06-08 at 11 54 46 am
    Pending further design especially for touch @carljbowman
  6. Certain values can trigger call-backs, e.g.:
    screen shot 2016-06-08 at 11 59 07 am
  7. Values can be populated with a call-back, e.g., in this case, it includes a list of sprites:
    screen shot 2016-06-08 at 11 59 52 am
@tmickel tmickel added the feature label Jun 8, 2016
@thisandagain thisandagain added this to the Backlog milestone Jun 14, 2016
@tmickel
Copy link
Contributor Author

tmickel commented Jun 14, 2016

Implemented using DropDownDiv in #407.

Separator should already be implemented. Need final behavior for coloring in the block, icon for the field, flipping the icon when rendered to secondary position, and adding callbacks for items like "new message..."

And thinking more deeply about scroll behavior and touch.

@tmickel
Copy link
Contributor Author

tmickel commented Jul 14, 2016

Breaking into more granular issues for future milestones.

@tmickel tmickel closed this as completed Jul 14, 2016
picklesrus pushed a commit to picklesrus/scratch-blocks that referenced this issue Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants