Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Text input in an Additive List

ANSWERED

Hello,

Is it possible to use a text input field to an additive list in a settings app?  If so, can someone point me to any documentation?

Thank you.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I know I am replying to my own thread, but here is a way to do it.  I modified one of the examples, and it seems to work well.

<AdditiveList
  title="A list with Autocomplete"
  settingsKey="autocomplete-list"
  maxItems="30"
  addAction={
    <TextInput
      title="Add List Item"
      label="Click to add a new item"
      placeholder="Type something"
      action="Add Item"
/>
  }
/>

 

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

I know I am replying to my own thread, but here is a way to do it.  I modified one of the examples, and it seems to work well.

<AdditiveList
  title="A list with Autocomplete"
  settingsKey="autocomplete-list"
  maxItems="30"
  addAction={
    <TextInput
      title="Add List Item"
      label="Click to add a new item"
      placeholder="Type something"
      action="Add Item"
/>
  }
/>

 

Best Answer
0 Votes

I checked the best answer to my previous post as this solved it for me.  I wanted to help others in case anyone came looking.  Sorry if this act is a bit conceited.  That is not my intent.

Best Answer
0 Votes