You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org> on 2015/09/17 13:03:46 UTC

[jira] [Resolved] (TOBAGO-1492) Possibility to add a CSS class to a component

     [ https://issues.apache.org/jira/browse/TOBAGO-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Udo Schnurpfeil resolved TOBAGO-1492.
-------------------------------------
    Resolution: Fixed

> 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
>             Fix For: 3.0.0-alpha-1, 3.0.0
>
>
> 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. Specially if you want to include external libs like e. g. Bootstrap plugins.
> 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="external-lib-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)