Skip to content

make isExporting property available so column definitions can use it - #2013

Merged
luanfreitasdev merged 2 commits into
Power-Components:6.xfrom
edwinheij:feature/enhance_export
Oct 16, 2025
Merged

luanfreitasdev merged 2 commits into
Power-Components:6.xfrom
edwinheij:feature/enhance_export

Conversation

@edwinheij

Copy link
Copy Markdown
Contributor

⚡ PowerGrid - Pull Request

  • Bug fix
  • Enhancement
  • New feature
  • Breaking change

Description

Just to do some magic within your column while using the exportjob like:

public function fields(): PowerGridFields
    {
        return PowerGrid::fields()
            // ...
            ->add('displayActual', fn (Supplier $model) => $this->isExporting ? ($model->is_actual ? 'Yes' : 'No') : Blade::render('...'))
            // ...

Related Issue(s):

Documentation

This PR requires Documentation update?

  • Yes
  • No
  • I have already submitted a Documentation pull request.

@luanfreitasdev
luanfreitasdev merged commit 41ab9f1 into Power-Components:6.x Oct 16, 2025
23 checks passed
@edwinheij
edwinheij deleted the feature/enhance_export branch October 16, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants