ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 1 reply, has 2 voices, and was last updated by  Alexander Kuzmenko 2 years ago.

  • Creator
    Topic
  • #11942
    mattiaruggiero
    mattiaruggiero
    Participant

    I have in datagrid a type “callback”

    type: callback
    callable: Demo\Bundle\DemoBundle\Formatter\Formatter::getFormatterCallback

    There is a way to pass an argument to my custom function “getFormatterCallback” ?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #12008

    Alexander Kuzmenko
    Participant

    Hi.

    You can take a look how this is done here.

    Basically, the whole node configuration is passed to your function, so all you need is to add your parameter to the grid config, e.g.:

    And then check its value in your callback method:

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.