getAutoCreate : function()
{
var btn = Roo.bootstrap.Button.prototype.getAutoCreate.call(this);
-
+ btn.cls += ' w-100 mb-2';
var cfg = {
cls : 'roo-card-uploader-wrap',
cn : [
closeable : true,
header_image : data.src,
data : data,
-
+ html : false,
listeners : {
click : function() {
// view..
{
xns : Roo.bootstrap,
- xtype : 'Link',
+ xtype : 'Button',
html : String.format("<small>{0}</small>", data.title),
- cls : 'p-9'
+ cls : 'col-8 text-left',
+ size: 'sm',
+ weight: 'info',
+ fa : 'download',
+ listeners : {
+ click : function() {
+ // download
+ }
+ }
+ },
+ {
+ xns : Roo.bootstrap,
+ xtype : 'Element',
+ cls : 'col-1'
},
{
xns : Roo.bootstrap,
xtype : 'Button',
html : 'Delete',
size : 'sm',
- cls : 'ml-auto p-3',
+ weight: 'danger',
+ cls : 'col-3',
fa : 'times'
}
]