| Page 1 of 1 | [ 3 posts ] |
|
Hi, I would like to add some specific HTML inside a Button that I add to a Y.Panel widget. But I don't know how can I do that.
I tried using the label but it escapes all the content. For example this is one of my buttons: { label : this.getInnerButton("Accept"), action : config.dialogActions.onAccept ? config.dialogActions.onAccept.bind(this) : function(e) { e.preventDefault(); }, section : Y.WidgetStdMod.FOOTER, classNames : '' } I would like to add a <span><b>MY LABEL</b></span> Thanks |
|
You can use the `yui3-button-label` CSS class to "tag" the element you want to hold the button's label text.
Here's an example of doing within a Panel: http://jsfiddle.net/ericf/aXkNs/3/ |
|
Ok . But then can I change that class ? I would like to have my self defined CSS class instead of the one that provides YUI in that element.
Another question that I have is there is a way to change the mask element without using a Y.Node ? I would like to replace the css class / style that provides YUI. Thanks ! |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group