显示图标而不是magento网格动作标签
如何在magento管理网格中显示图标而不是操作标签。例如:我需要显示图像图标,而不是“编辑”/“删除网格中的行” 谢谢,显示图标而不是magento网格动作标签,magento,grid,icons,Magento,Grid,Icons,如何在magento管理网格中显示图标而不是操作标签。例如:我需要显示图像图标,而不是“编辑”/“删除网格中的行” 谢谢, murali我使用css完成了这一问题。只需将动作数组添加到新类中,如 $this->addColumn('action', array( 'header' => Mage::helper('mymodule')->__('Action'), 'width'
murali我使用css完成了这一问题。只需将动作数组添加到新类中,如
$this->addColumn('action',
array(
'header' => Mage::helper('mymodule')->__('Action'),
'width' => '100',
'type' => 'action',
'align' =>'center',
'getter' => 'getAnswerId',
'actions' => array(
array(
'caption' => Mage::helper('mymodule')->__('Delete'),
'url' => array('base'=> '*/*/delete'),
'confirm' => Mage::helper('mymodule')->__('Are you sure?'),
'class' => 'addm',
)
),
'filter' => false,
'sortable' => false,
'index' => 'store',
'is_system' => true,
));
并使用以下代码编写新的css:
.addm{
background-image:url('delete.png');
background-repeat:no-repeat;
text-indent:-9999px !important;
font-size:0px;
display:block;
margin-left:5px;
}.
您已经完成了。是否有可能显示图标。我用了不同的方法,但没有工作。