Framework7: Want to trigger a SmartSelect option. How?

Created on 25 Nov 2014  路  3Comments  路  Source: framework7io/framework7

Hello there! Doing fine?

Well, theres' the case, I have a historic page, with recent options that have been chosen from, and when the user click on it there's a need to update the SmartSelect. I can however, update the <select> which indeed work when submitting the <form>, but visually, there isn't any clue to the user that it worked correctly.

Can you help me out?

As usual, here is a gif :)
smartselectproblem

outdated

Most helpful comment

So if i get you right, to update smart select, you need to manually update its <select> options and then call app.initSmartSelects(pageContainer), where pageContainer is the parent .page div of this smart select. This method will update visible selected values in "item-after"

All 3 comments

So if i get you right, to update smart select, you need to manually update its <select> options and then call app.initSmartSelects(pageContainer), where pageContainer is the parent .page div of this smart select. This method will update visible selected values in "item-after"

Worked! Thank you so much!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings