On Thu, Sep 3, 2009 at 11:00 AM, <--v1c1ous--><[email protected]> wrote:
>
> When the user click the Toolstrip call toolstrip.expand and show the
> mole, right?
I think he's referring to the feature where you define a mole in your
manifest and the user expands / collapses by clicking on the toolstrip
handle, in which case, there's no real way to handle this today.
Erik
> Sure you use onClick in toolstrip-button div to call a function but
> you can use click event listener to know when the user click the
> toolstrip and colapse/expand the mole.
>
> For example:
>
> document.addEventListener('click', function(e){
> if (div == 'visible'){
> //hide and collapse
> }else{
> //show and expand
> }
> }, false);
>
> -v1c1ous
>
> On Sep 3, 1:43 pm, "Daniele S." <[email protected]> wrote:
>> I was misunderstand. The user can collapse the toolstrip without triggering
>> any events ( It's not my code that call collapse ) just by clicking on the
>> handle of the mole.
>> My extension has no way to detect such behavior :/
>>
>> Daniele S.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---