Jump to content

disable row click action helperList


beginner1

Recommended Posts

Hi everyone, I have created a helperList and defined the rowActions view, edit and delete. I have noticed that on clicking the row not the buttons, the action of the first rowAction i.e. 'view' in this case is performed. How can I disable it such that only the button click performs the action while clicking anywhere else on the table i.e. on the rows does nothing.

Link to comment
Share on other sites

  • 2 months later...

I searched for a while for this issue.

 

If you want to remove the click you have to define it in your field list for each column with remove_onclick = true

 

$this->fields_list = array(
        'id_category' => array(
            'title' => $this->l('Id'),
            'width' => 140,
            'type' => 'text',
        ),
        'name' => array(
            'title' => $this->l('Name'),
            'width' => 140,
            'type' => 'text',
            'remove_onclick' => true
        ),
    );
Edited by ninaKrea (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...