Skip to content
Discussion options

You must be logged in to vote

Hello @blondie63

'visibleInExport' => false,

is working as expected

I make a test with Monster on demo:

With normal params:
XLSX

PDF

Now i change this:

[
  'name'  => 'checkbox',
  'label' => 'Boolean',
  'type'  => 'boolean',
  // optionally override the Yes/No texts
  'options' => [0 => 'Yes', 1 => 'No'],
  'wrapper' => [
      'element' => 'span',
      'class'   => function ($crud, $column, $entry, $related_key) {
          if ($column['text'] == 'Yes') {
              return 'badge rounded-pill bg-success';
          }

          return 'badge rounded-pill bg-danger';
      },
  ],
  'visibleInExport' => false,
],

So "Boolean" column need to be hide:
XLSX

PDF

Is working correc…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@blondie63
Comment options

@tabacitu
Comment options

@jcastroa87
Comment options

Answer selected by jcastroa87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants