myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Udo Schnurpfeil (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (TOBAGO-1492) Possibility to add a CSS class to a component
Date Thu, 17 Sep 2015 10:52:45 GMT
Udo Schnurpfeil created TOBAGO-1492:
---------------------------------------

             Summary: Possibility to add a CSS class to a component
                 Key: TOBAGO-1492
                 URL: https://issues.apache.org/jira/browse/TOBAGO-1492
             Project: MyFaces Tobago
          Issue Type: New Feature
          Components: Core, Themes
            Reporter: Udo Schnurpfeil
            Assignee: Udo Schnurpfeil


There is a solution in Tobago to add specific CSS classes into component:
It's the "markup" attribute.

Its the formal way to describe what renderers supports. That the reason why it must be registered
via tobago-config.xml

But this is a bit inflexible. 

With this feature it is possible to put a CSS class name into a component with the <tc:style>
tag. Example

{code}
<tc:in>
  <tc:style customClass="my-emphasized"/>
</tc:in>
{code}

One capability is, to used external CSS libs.

This feature should not be used imprudent. Because it might be unstable against changes in
the renderered HTML code.



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

Mime
View raw message