Add new Tag on top
See original GitHub issueI need to make the Add New Tag button on Top
Currently when we have many options, I can’t see the button at first even I don’t have that item in the dropdown list.
So if there’s option to show “Add a new tag” button on top of the menu list that would be better to understand that if the item is exists or not.
Something like this one:
<ng-select
[items]="items"
[addTag]="true"
[addButtonPosition]="top" // or "bottom" or "auto" same as [dropdownPosition]
bindLabel="name"
(add)="onAddItem($event)"
[(ngModel)]="item">
</ng-select>
Cheers!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:15
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Use tags to organize files on Mac
Tag an open file: Hold the pointer to the right of the document title, click the down arrow , click in the Tags...
Read more >Add new commit to the existing Git tag
Now when I push new changes and check the git tag using git describe it is showing me v1.1-g2dcc97 . How can I...
Read more >Create, Add, or Remove Tags
To create a new tag and add it to contacts in your audience with a CSV file or by pasting addresses, follow these...
Read more >How to Use Tags on Instagram in Posts, Stories ... - YouTube
New to using tags on Instagram? ... When you're finished adding tags, tap Done. ... Then tap the A at the top to...
Read more >How To Create Git Tags
In order to create a new tag, you have to use the “git tag” command and specify the tag name that you want...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@angelo510 in your case maybe you should filter items differently? It is placed at the bottom because users shouldn’t be interested in adding new options while there are plenty of items to choose from.
+1 for adding this functionality!
A common use case where this would be necessary is when using <ng-select> as a search input that is fetching some auto-suggested options from a server. It’s important for this use case to have the user’s search term on top since hitting Enter automatically selects the first item in the list, in my case, the first auto-suggested result, which is not intuitive for the user.
Ideally, the first result would be “Search for {searchTerm}”, followed by the list of suggestions, so that they can use the input as a regular search bar, where hitting Enter triggers a callback with the exact term they typed in.