Changing icon on button click
Opened this issue · 1 comments
bradsapp commented
I have not been successful in changing fa icons on click. Can anyone help me determine how I can change the icons for the buttons in the table rows?
$.table.addEventListener('click',function(e){
if(e.source.toString() == '[object TiUIButton]') {
if(e.source.icon=='fa-star-o') {
$.fa.change(e.source,'fa-star');
}
if(e.source.icon=='fa-star') {
$.fa.change(e.source,'fa-star-o');
}
}
});
MattMcFarland commented
can you confirm that e.source.icon is not undefined?