[ 
https://issues.apache.org/jira/browse/ISIS-1000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14265834#comment-14265834
 ] 

ASF subversion and git services commented on ISIS-1000:
-------------------------------------------------------

Commit bc8573a012ae376e97caa03db56e30390ac4effd in isis's branch 
refs/heads/ISIS-1000-CssClassFacetMethod from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=bc8573a ]

ISIS-1000: generalizing CssClassFacet to accept an (optional) ObjectAdapter

This allows the same facet to be used for the object-level cssClass() 
(corresponding to CssClassFacetMethod) as well as the member-level 
@XxxLayout(cssClass=...) annotations.  It also opens up the possibility of 
member-level CSS being dynamic (per object instance) in the future.

Also, updated todoapp to demonstrate the feature (completed items are rendered 
in tables with a line-through and lightgrey).


> Allow objects to return CSS  class (analogous to iconName() method) so that 
> their presentation can be dynamically reflected in tables or on an object 
> form.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-1000
>                 URL: https://issues.apache.org/jira/browse/ISIS-1000
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core, Viewer: Wicket
>    Affects Versions: viewer-wicket-1.7.0, core-1.7.0
>            Reporter: Dan Haywood
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: viewer-wicket-1.8.0, core-1.8.0
>
>
> Suggest:
> cssClass() as the method name (at object level).
> Reuse CssClassFacet, with a new facet factory to install for the 
> ObjectSpecification.
> Update the wicket viewer in two place:
> * the CollectionContentsAsAjaxTablePanel should add the CSS to each <tr>
> * the EntityCombinedPanel to add the CSS to an appropriate <div> that wraps 
> all the content on the page.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to