ButtonActionType 
The ButtonActionType represents an action rendered as a button.
Options 
href 
- type: 
stringorcallable - default: 
'#' 
A value used as an action link href attribute.
use Kreyu\Bundle\DataTableBundle\Action\Type\ButtonActionType;
$builder
    ->addAction('back', ButtonActionType::class, [
        'href' => $this->urlGenerator->generate('category_index'),
    ])
;target 
- type: 
stringorcallable - default: 
'_self' 
Sets the value that will be used as an anchor target attribute.
use Kreyu\Bundle\DataTableBundle\Action\Type\ButtonActionType;
$builder
    ->addAction('wiki', ButtonActionType::class, [
        'target' => '_blank',
    ])
;Inherited options 
label 
- type: 
null,stringorSymfony\Component\Translation\TranslatableInterface - default: 
null 
A label representing the action. When value equals null, a sentence cased action name is used as a label, for example:
| Action name | Guessed label | 
|---|---|
| create | Create | 
| saveAndClose | Save and close | 
label_translation_parameters 
- type: 
array - default: 
[] 
An array of parameters used to translate the action label.
translation_domain 
- type: 
falseorstring - default: 
'KreyuDataTable' 
Translation domain used in translation of action's translatable values.
block_prefix 
- type: 
string - default: value returned by the action type 
getBlockPrefix()method 
Allows you to add a custom block prefix and override the block name used to render the action type. Useful, for example, if you have multiple instances of the same action type, and you need to personalize the rendering of some of them, without the need to create a new action type.
visible 
- type: 
boolorcallable - default: 
true 
Determines whether the action should be visible to the user.
The callable can only be used by the row actions to determine visibility based on the row data:
use Kreyu\Bundle\DataTableBundle\Action\Type\ButtonActionType;
$builder
    ->addRowAction('remove', ButtonActionType::class, [
        'visible' => function (Product $product) {
            return $product->isRemovable();
        },
    ])
;attr 
- type: 
array - default: 
[] 
An array of attributes used to render the action.
use Kreyu\Bundle\DataTableBundle\Action\Type\ButtonActionType;
$builder
    ->addAction('remove', ButtonActionType::class, [
        'attr' => [
            'class' => 'bg-danger',
        ],
    ])
;icon_attr 
- type: 
array - default: 
[] 
An array of attributes used to render the action's icon.
use Kreyu\Bundle\DataTableBundle\Action\Type\ButtonActionType;
$builder
    ->addAction('remove', ButtonActionType::class, [
        'icon_attr' => [
            'class' => 'ti ti-trash',
        ],
    ])
;confirmation 
- type: 
bool,arrayorcallable - default: 
false 
Determines whether the action is confirmable, which displays a modal where user have to acknowledge the process. The modal can be configured by passing an array with the following options:
translation_domain
- type:
 falseorstring- default:
 'KreyuDataTable'
label_title
- type:
 nullorstring- default:
 'Action confirmation'
label_description
- type:
 nullorstring- default:
 'Are you sure you want to execute this action?'
label_confirm
- type:
 nullorstring- default:
 'Confirm'
label_cancel
- type:
 nullorstring- default:
 'Cancel'
type
- type:
 nullorstring- default:
 danger- allowed values:
 danger,warning,infoRepresents a type of the action confirmation, which determines the color of the displayed modal.
