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

It just wont work with templates #213

Open
guille-alibrate opened this issue Dec 30, 2019 · 0 comments
Open

It just wont work with templates #213

guille-alibrate opened this issue Dec 30, 2019 · 0 comments

Comments

@guille-alibrate
Copy link

guille-alibrate commented Dec 30, 2019

Templates wont show up. They remain with display: none attribute.

My code:

<textarea rows="2" 
name="reviewInput" 
placeholder="Escribe una reseña (máximo 5.000 caracteres)." 
ng-model="$ctrl.model" 
ng-maxlength="5000" 
msd-elastic="msd-elastic" 
mentio="mentio" 
mentio-typed-term="typedTerm" 
mentio-require-leading-space="true" 
id="reviewInput" 
mentio-id="'reviewInput'" 
ng-trim="false" 
required="required" 
class="form-control editor" 
autocomplete="off">
</textarea>

<mentio-menu mentio-for="'reviewInput'" 
mentio-trigger-char="'@'" 
mentio-items="$ctrl.users" 
mentio-search="$ctrl.searchUsers(term)" 
mentio-template-url="item-mentions.tpl">
</mentio-menu>

<script type="text/ng-template" id="item-mentions.tpl">
  <ul class="list-group dropdown-menu scrollable-menu">
	<li mentio-menu-item="item" ng-repeat="item in items">
	  <span>{{item.username | mentioHighlight:typedTerm:'menu-highlighted'}}
    </span>
	</li>
  </ul>
</script>
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