eakoriakin / ionic-selectable

Ionic Selectable is an Ionic versatile and highly customizable component that serves as a replacement to Ionic Select, and allows to search items, including async search, create items, customize the layout with templates and much more. It provides an intuitive API and is easy to set up and use.
MIT License
549 stars 125 forks source link

Multiple values for itemTextField #400

Closed stefanofinetti closed 1 year ago

stefanofinetti commented 1 year ago

Hello,

i'd like to point out that this is not a bug, ionic-selectable is working just fine in my app.

What i'd like to have is the possibility to show 2 fields of a record in the itemTextField. I have a query that returns a list of people and in the db I have 2 separate fields for first and last name. Once I select one of the records in the list, I'd like to see, as text field, a concatenation of last name and first name. Is that possible somehow without manipulating the original record data (which I can't do because the db is not mine and I only have the Rest method to get the informations?)

Thanks.

eakoriakin commented 1 year ago

@stefanofinetti hi, I think what you a looking for are templates, particularly these two: item template and value template.