how can I expand, or make a dojo button wider?

青春壹個敷衍的年華 提交于 2019-12-06 09:16:37

Alright, I got the answer at an IBM's forum, someone told me to override the dijit style:

.dijitButtonNode{ width:100%; }

and that did the job :-)

if you need to change the width for a single instance, changing the CSS class wouldn't be a good idea... you can make it programmatically by applying the style to the domNode of your widget... like myButtom.domNode.style.width = "100%";

if sticking with declaration, add a specifier class:

<button data-dojo-type="dijit/form/Button" type="button" class="myButtons"></button>

then, in css:

.myButtons .dijitButtonNode
{
    width:100%;
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!