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.

Add new Tag on top

See original GitHub issue

I 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.

image

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:open
  • Created 6 years ago
  • Reactions:15
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
varnastadeuscommented, Mar 21, 2018

@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.

4reactions
scolacurciocommented, Mar 8, 2022

+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.

Read more comments on GitHub >

github_iconTop 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 >

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