Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b:panel could have iconAwesome #753

Closed
chongma opened this issue May 3, 2017 · 3 comments
Closed

b:panel could have iconAwesome #753

chongma opened this issue May 3, 2017 · 3 comments
Assignees
Milestone

Comments

@chongma
Copy link
Collaborator

chongma commented May 3, 2017

in the showcase the way to add an icon to a panel is to use a heading facet

<b:panel>
   <f:facet name="heading">
     <i class="fa fa-battery-three-quarters" style="padding-right:20px" />
     <h:outputText value="Battery charge left: 75% " />
     <b:badge style="margin-left:10px; background-color:#5cb85c" value="good"  />
   </f:facet>
   <h:outputText value="Panel Content"/>
</b:panel>

BTW this also seems to reduce the font size of the panel title

a nice enhancement might be to also be able to specify an icon using the icon and iconAwesome attributes.

@chongma chongma closed this as completed Jun 4, 2017
@chongma chongma reopened this Jun 4, 2017
This was referenced Jun 4, 2017
@TheCoder4eu TheCoder4eu added this to the v1.1.2 milestone Jun 11, 2017
@TheCoder4eu
Copy link
Owner

@chongma , can I close this issue?

@chongma
Copy link
Collaborator Author

chongma commented Jun 18, 2017

I submitted a PR. Did you merge? I was going to add an example to the showcase as well so it can be demonstrated

@TheCoder4eu
Copy link
Owner

@chongma if you are referring to #805 yes, I did merge.

@chongma chongma closed this as completed Jun 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants