Anders,
I do this in my app. I call it an InvisibleButton. All you need to do
is alter the CSS. I copied the CSS from GWT's PushButton and renamed
the gwt-PushButton part to mm-InvisibleButton. You don't even need to
do that if you want that behavior for all of your push buttons. Simply
alter the gwt-PushButton CSS. Here's the CSS I use for my
InvisibleButton:
.mm-InvisibleButton-up,
.mm-InvisibleButton-up-hovering,
.mm-InvisibleButton-up-disabled,
.mm-InvisibleButton-down,
.mm-InvisibleButton-down-hovering,
.mm-InvisibleButton-down-disabled {
margin: 0;
text-decoration: none;
}
.mm-InvisibleButton-up,
.mm-InvisibleButton-up-hovering,
.mm-InvisibleButton-up-disabled {
padding: 3px 5px 3px 5px;
}
.mm-InvisibleButton-up {
cursor: pointer;
cursor: hand;
}
.mm-InvisibleButton-up-hovering {
cursor: pointer;
cursor: hand;
}
.mm-InvisibleButton-up-disabled {
cursor: default;
opacity: .5;
filter: alpha(opacity=40);
zoom: 1;
}
.mm-InvisibleButton-down,
.mm-InvisibleButton-down-hovering,
.mm-InvisibleButton-down-disabled {
padding: 4px 4px 2px 6px;
}
.mm-InvisibleButton-down {
cursor: pointer;
cursor: hand;
}
.mm-InvisibleButton-down-hovering {
cursor: pointer;
cursor: hand;
}
.mm-InvisibleButton-down-disabled {
cursor: default;
opacity: 0.5;
filter: alpha(opacity=40);
zoom: 1;
}
HTH,
Chad
On Jun 2, 2:40 pm, dduck <[email protected]> wrote:
> Hi,
>
> I would live to create a button that works just like a pushbutton, but
> without the grey background. Is there an easy way to just remove th
> egrey button outline, or will I have to roll my own component?
>
> Regards,
> Anders S. Johansen, ange.dk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---