Skip to content
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

Ment.io retriving the selected mentions #196

Open
nirmalrepo opened this issue Apr 24, 2017 · 3 comments
Open

Ment.io retriving the selected mentions #196

nirmalrepo opened this issue Apr 24, 2017 · 3 comments

Comments

@nirmalrepo
Copy link

How can I get all the selected mentions from a text area

@iooops
Copy link

iooops commented Jun 4, 2018

I want to know the answer, too..

@guille-alibrate
Copy link

guille-alibrate commented Dec 11, 2019

Currently, I'm doing:

mentio-select="selectItem(item)"

and

$ctrl.selectItem = function (obj) {
      // do something here to store your object in an array or something
      return obj.label
    }

However, I still don't know how to clean the array if the user deletes de mention. I'm thinking about checking the text context to find every single mention before submitting the for content.

@MohammedMubeen
Copy link

@guille-alibrate

how to clean the array if the user deletes de mention? did you found any solution.

My code:

$scope.getSuggestionText = function (item) {
if (item.Name != undefined) {
$rootScope.SuggestionTags.push({
Name: item.Name,
ID: item.ID,
Email: item.Email,
Initials: item.Initials,
Type: item.Type
});
return '@' + item.Name + '';
}
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants