dojo требует определенных полей css, которые, я считаю, следующие:
Мой css:
.configButton .dijitButtonNode {
background-image: url(../images/gear16.png);
background-position: center center;
background-repeat: no-repeat;
width: 16px;
height: 16px;
}
Часть моей структуры:
{ id: 'config', field: 'config', name: 'Config', width: '61px',
widgetsInCell: true,
navigable: true,
allowEventBubble: true,
decorator: function(){
//Generate cell widget template string
return [
'<button data-dojo-type="dijit.form.Button" ',
'data-dojo-attach-point="btn3" ',
'class="configButton" ',
'data-dojo-props="onClick: function(){',
'alert(\'Configuration\');',
'}"></button>'
].join('');
},
setCellValue: function(data){
//"this" is the cell widget
this.btn3.set('label3', data);
}
}
Я не могу заставить мою кнопку работать правильно, особенно изображение значка. Я получаю только свернутую кнопку в моей ячейке GridX.