我创建了一个helperList,并使用addRowAction视图,编辑和删除定义了rowActions。一切正常但我注意到在点击行而不是按钮时,执行第一行动作按钮的动作,即在这种情况下的“视图”。如何禁用它,以便只有按钮单击才能执行操作,同时单击表中的任何其他位置,即行上不执行任何操作。我正在研究prestashop 1.7。
答案 0 :(得分:0)
我搜索了这个问题并找到了解决方案,希望它会帮助你
如果您要删除点击,则必须在字段列表中为'remove_onclick' => true,
$this->fields_list = [
'id' => [
'title' => $this->l('Id'),
'type' => 'text',
'align' => 'center',
'search' => false,
'remove_onclick' => true,
],
];
帮助表单中的或$helper->no_link = true;
$helper = new HelperList();
$helper->no_link = true;
答案 1 :(得分:0)
尝试添加“$this->list_no_link = true;”在“__construct()”函数中。
public function __construct()
{
...
...
$this->list_no_link = true;
}