SMART datagrid v1.4 > Classes

[ grids ver.1.2.9]   Back  Forward

DataLudi.ButtonCellRenderer  class

imageUrl등으로 지정한 이미지들을 이용하여 데이터셀에 상태별 이미지 버튼을 표시한다. 

컬럼 렌더러 설정시 type을 "button"으로 지정한다. 

Base Classes
ClickableCellRenderer > DataCellRenderer > GridObject > EventAware > DLBase
Constructor
function ButtonCellRenderer ();
Properties
activeImageUrl
disabledImageUrl
disabledText
disableHoveredImageUrl
disableHoveredText
downOffset
enabledCallback
enabledExpression
hoveredImageUrl
hoveredText
imageDisplay
imageHorizontalAlign
imageUrl
imageVerticalAlign
text
textOnImage
textPadding
textVisible
Inherited Properties
GridObject.owner
DataCellRenderer.showTooltip
Inherited Methods
EventAware.addListener
DLBase.assign
ClickableCellRenderer.ctor
DataCellRenderer.ctor
GridObject.ctor
DLBase.getProperties
DLBase.getProperty
EventAware.removeListener
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    grid.setColumns([{
        name: "col1',
        renderer: {
            type: "button",
            imageUrl: "img/btn_normal.png",
            text: "Refresh"
        }
    }, 
    ...
    ];
See Also
ImageCellRenderer
IconCellRenderer
ShapeCellRenderer
Examples
Button Cell Renderer