Re: D2WModernLook question
Re: D2WModernLook question
- Subject: Re: D2WModernLook question
- From: Daniel Mejía <email@hidden>
- Date: Wed, 17 Nov 2010 21:20:34 -0600
Thank you David,
This works very well. I modified the CSS to move the list to the right and have background. Here is the css used. Here is the image with the result.

/* css for ERDControllerButton for ModernLook */
.ERDControllerButton {
display: block !important;
}
.ERDControllerButtonLinkList {
display: inline;
margin: 0px;
padding: 0px;
}
.ERDControllerButtonLinkList li {
display: inline;
margin: 0px;
padding: 0px;
font-family: Arial, Geneva, sans-serif;
font-size: 11px;
}
.ERDControllerButtonLinkList li a {
padding: 0px 5px;
}
/*Estilos PopUp*/
.ERDControllerButtonFlyOverList{
background-color: #414B5E;
color: #C2C6CF;
border: 1px solid #333;
width:80px;
padding:10px;
rigth:20;
}
.ERDControllerButtonFlyOverList a{
color: #FFF;
}
.ERDControllerButtonFlyOverList a:hover{
color: #CCC;
text-decoration:underline;
}
.ERXJSFlyOver span{
left:45px !important;
top:-13px !important;
}
</style>
Saludos,
Daniel.
El 17/11/2010, a las 14:11, David Holt escribió:
> Hi Daniel,
>
> I think you'll need to add css. Here is what I used (see BugTracker):
>
> /* ERDActionButton stuff */
>
> .ERDControllerButton {
>
> }
>
> .ERDControllerButtonLinkList {
> display: inline;
> margin: 0px;
> padding: 0px;
> }
>
> .ERDControllerButtonLinkList li {
> display: inline;
> margin: 0px;
> padding: 0px;
> font-family: Arial, Geneva, sans-serif;
> font-size: 11px;
> }
>
> .ERDControllerButtonLinkList li a {
> padding: 0px 5px;
> }
>
>
> The rules I use are the following. The only tricky bit is that if you don't have it default to the ERXEmptyComponent, it will display the controller button in every list if I recall correctly:
>
> 50 : *true* => controllerButtonComponentName = "ERXEmptyComponent" [com.webobjects.directtoweb.Assignment]
> 50 : entity.name = 'Document' => pageController = "ca.cscw.p2p.delegates.DocumentDelegate" [er.directtoweb.ERDDelayedObjectCreationAssignment]
> 100 : pageConfiguration like 'ListDocuments' => actions = {"right" = ("controllerAction"); } [com.webobjects.directtoweb.Assignment]
> 100 : pageConfiguration like 'ListDocuments' => controllerButtonUIStyle = "linkList" [com.webobjects.directtoweb.Assignment]
> 100 : propertyKey = 'controllerAction' => componentName = "ERDControllerButton" [com.webobjects.directtoweb.Assignment]
>
> Hope that helps,
>
> David
>
> On 2010-11-17, at 11:23 AM, Daniel Mejía wrote:
>
>> Hi all,
>>
>> I´m working with the D2WModernLook and I´m trying to add an ERControllerButton to a list component, but I can´t get to display the actions in my class that extends ERDBranchDelegate. Looking in the CSS from the ERModernDefaultSkin I found that the style for ERDBranchDelegate is set to display : none.
>
> I think you mean ERDControllerButton. I removed the display: none; (see above) but make sure you set it to display the ERXEmptyComponent instead so it doesn't show up all over the place.
>
> .ERDControllerButton {
>
> }
>
>
>> Is that possible to change this attribute to display the button that contains al the actions in my class that extends ERDBranchDelegate class?
>>
>> The rules that I´m using are similar that the rules explained in the wiki in this page:
>>
>> http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/er/directtoweb/pages/ERD2WPage.html#pageController()
>>
>>
>> Regards,
>>
>> Daniel.
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden