2 changed files with 1 additions and 35 deletions
@ -1,33 +0,0 @@
|
||||
import { shortcut } from '@core/core'; |
||||
import { IconButton, Left, Label } from 'ui'; |
||||
|
||||
export const IconTextXtype = 'dec.dcm.connection.list_item.icon_text'; |
||||
@shortcut(IconTextXtype) |
||||
export class IconText extends BI.BasicButton { |
||||
props = { |
||||
iconCls: '', |
||||
text: '', |
||||
height: 25, |
||||
} |
||||
|
||||
render() { |
||||
const { iconCls, text } = this.options; |
||||
|
||||
return { |
||||
type: Left, |
||||
items: [ |
||||
{ |
||||
type: IconButton, |
||||
cls: `${iconCls} icon-size-16`, |
||||
title: text, |
||||
stopPropagation: true, |
||||
}, |
||||
{ |
||||
type: Label, |
||||
text, |
||||
}, |
||||
], |
||||
}; |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue