mercredi 13 décembre 2017

how to get selected user id in ember

I am trying to add # for hastag and @ for user and I am using below package for that in ember package: ember-cli-mentionable

# is working but @ is not working

  const hashTags =[{
                searchProperty: 'name',
            values: []
            },{
                token: '#',
                values: this.get('hashTagList')
            }];
        this.set('hashTags',hashTags);
        let hashMapOfItems=new Ember.RSVP.Promise((resolve) => {
                resolve(this.get("userList"))
            })
        this.set('hashMapOfItems',hashMapOfItems);
 

here I am trying to get selected user but user list is showing empty when I write @

didSelectValue(selected) {
        console.log('selected',selected); // contains the object that was chosen.
    }

Please help me to find the solution for multiple token




Aucun commentaire:

Enregistrer un commentaire