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 8 years, 8 months ago.

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

  • Creator
    Topic
  • #36899

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

    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)

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

Back to top