Search code examples
javascriptappceleratorappcelerator-titanium

Apply Blinking border to a tableview in appcelerator


I have a doubt in appcelerator. Does any body know how to apply a blinking border to a table view in appcelerator. I applied a border color to tableview, but i need to blinking it with other color. Any help will be deeply appreciated. Thank you.


Solution

  • try using javascript setInterval.

    setInterval(function() {
        if (table.borderColor == '#F00') {
            table.borderColor = '#0F0';
        }
        else {
            table.borderColor = '#F00';
        }
    }, 500);
    

    First set a borderColor in tableView and interchenge it with other color with setInterval(). set the time in milisecond as how first you want it to blink.