Edit tag once added from dropdown

12 views
Skip to first unread message

dr.m...@gmail.com

unread,
Mar 10, 2017, 5:26:07 AM3/10/17
to select2

Hi all,
I'm writing a simple ledger for meteor and I'm using select2 for selecting a
new category (account). I've a fixed list of accounts that the user can select, but I'd also give the possibility to create a new one that is a subcategory of
an existent account. For example if my accounts are

Expenses
Expenses::Grocery
Expenses::Bank
Assets
Assets::Somethingelse

then the user should be able to select on of the above, but also to add a new one
like

Expenses::NewOne or Expenses::Bank::Reference

I can do this if the select is configured with "tags:true" (and multiple:false), but to add a new tag, I'm forced to write down the entire tag.

What I'd like is to be able to write "Exp", then select from the dropdown the subcategory (i.e. Expenses), and then append (if I want to) the rest (Expenses::NewOne). As it stand, if I select an item from the dropdown, then it is not possible to edit it anymore.

Is this a way to do this ?

thanks

dr.

Reply all
Reply to author
Forward
0 new messages