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

Using mention-select when we have mention-template-url #184

Open
shadihrr opened this issue Oct 4, 2016 · 0 comments
Open

Using mention-select when we have mention-template-url #184

shadihrr opened this issue Oct 4, 2016 · 0 comments

Comments

@shadihrr
Copy link

shadihrr commented Oct 4, 2016

I use the ment.io as follow
<textarea ng-model="input.message" required mentio-select="mentionSelected(person)" = maxlength="1500" msd-elastic mentio mentio-typed-text="typedTerm" mentio-template-url="/people-mentions.tpl" mentio-items="users | filter:label:typedTerm"></textarea>
I want to call mentionSelected() function, but item person is undefined because its value is defined in people-mentions.tpl as follow

<script type="text/ng-template" id="/people-mentions.tpl"> <ul class="list-group mention-list-up mention-list triangle-isosceles"> <li mentio-menu-item="person" ng-repeat="person in items" class="list-group-item" style="position: relative; margin-bottom: 15px"> <span class="text-primary" style="left: 35px; margin-left: 40px; font-size: 12px; padding-top: 10px" ng-bind-html="person.user.userInfo.firstName | mentioHighlight:typedTerm:'menu-highlighted' | unsafe" ></span> </li> </ul> </script>

I tried to add mentio-select on the ul in the code above but it didn't work how can I do this?

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

1 participant