OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform How to pass arguments in functions called from DataGrid

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #36899

    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
  • #36900

    Alexander Kuzmenko


    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)

The forum ‘OroPlatform’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No