You'd need multiple icons (2^3) to represent the different states the page can be in for this approach to work, but yeah. You can do this with setIcon as they stated. Or using a single icon and a browser action popup to show the details, as I think Aaron suggested on the other thread.
On Tue, Oct 27, 2009 at 13:37, Aaron Boodman <[email protected]> wrote: > > On Mon, Oct 26, 2009 at 4:36 PM, Gabe <[email protected]> wrote: > > How do I enable multiple Page Actions within a single extension? The > > goal is to have an extension that searches for a particular line of > > code on the page and displays a different icon depending on the state > > of this line of code (eg. found- green, not found- red, contains a > > particular value- yellow). > > You don't need multiple page actions for that. Like Pam said, you can > change the icon of a page action dynamically using > setIcon({path:"path/to/icon.png"}); > > Note, however, that there is a bug in the current dev channel release > that only lets this happen one time :(. See this thread for > workarounds: > > > http://groups.google.com/group/chromium-extensions/browse_thread/thread/402a0cd26932eff6 > > - a > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en -~----------~----~----~----~------~----~------~--~---
