Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
显示图标而不是magento网格动作标签_Magento_Grid_Icons - Fatal编程技术网

显示图标而不是magento网格动作标签

显示图标而不是magento网格动作标签,magento,grid,icons,Magento,Grid,Icons,如何在magento管理网格中显示图标而不是操作标签。例如:我需要显示图像图标,而不是“编辑”/“删除网格中的行” 谢谢, murali我使用css完成了这一问题。只需将动作数组添加到新类中,如 $this->addColumn('action', array( 'header' => Mage::helper('mymodule')->__('Action'), 'width'

如何在magento管理网格中显示图标而不是操作标签。例如:我需要显示图像图标,而不是“编辑”/“删除网格中的行”

谢谢,
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;

    }.

您已经完成了。

是否有可能显示图标。我用了不同的方法,但没有工作。