question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Select/Autocomplete features proposals list

See original GitHub issue

🚀 Feature Proposal

It would be great to add the following abilities: Props:

  • caption
  • popover properties (at least placement)
  • onBlur (needs discussion)
  • onFocus (needs discussion)

Methods:

  • focus
  • blur

Note: some discussion related to implementation focus and blur methods is required.

Motivation

This will help a lot in using these components in validation forms.

Example

<View>
        <Input
           label='Input'
           value={this.state.value1}
           onChangeText={this.setValue1}
           onSubmitEditing={this.onAutocompleteFocus}
        />
        <Autocomplete
           label='Autocomplete'
           ref={this.autocompleteRef}
           value={this.state.value2}
           placement='top'
           onChangeText={this.setValue2}
           onSelect={this.onSelectSomething1}
           onSubmitEditing={this.onSelectFocus}
        />
        <Select
           label='Select'
           ref={this.selectRef}
           data={this.selectData}
           caption={this.getCaption(errors, touched)}
           selectedOption={this.state.selectOption}
           onSelect={this.selectSomething2}
           onBlur={this.setSelectTouched}
        />
</View>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
artyorshcommented, Jan 28, 2020

Got your idea, can you please move your comment into a new issue? I guess it could be available in 4.4. Thanks👍

0reactions
junniepatcommented, Apr 24, 2020

How can one get the value of the selected option not row id. I need this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 7. Content Assist (Autocomplete) - DVT Eclipse IDE
Proposals are presented in a list for you to choose from. Moving through proposals you can quickly see the related documentation.
Read more >
[New Feature Proposal] change from selection field to ...
it is proposed to change the field type from selection to Autocomplete, then user can both scroll from the long list like before...
Read more >
Autocomplete - Forma 36
The Autocomplete requires 3 props to work: ... An Autocomplete with a list of spaces will look like this: Travel Blog; Finnance Blog;...
Read more >
Auto-completion - Notepad++ User Manual
With auto-completion active, after typing a prefix of at least the minimum length, a list is presented with all the available words from...
Read more >
Tab to select autocomplete item in eclipse? - Stack Overflow
For instance in Aptana Studio, you could define set of keys for proposal ... think you can change what is used to select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found