public function setConfirm($operation, $message)
    {
        $message = $this->translate($message);
        $this->grid->onRender[] = function(Grid $grid) use ($operation, $message) {
            $grid['form'][Operation::ID][Operation::ID]->getControlPrototype()->setAttribute(
                "data-grido-confirm-$operation", $message
            );
        };

        return $this;
    }
public function setConfirm($operation, $message)
    {
        $message = $this->translate($message);
        $this->grid->onRender[] = function(Grid $grid) use ($operation, $message) {
            $grid['form'][Operation::ID][Operation::ID]->getControlPrototype()->setAttribute(
                "data-grido-confirm-$operation", $message
            );
        };

        return $this;
    }
public function setConfirm ( $ operation , $ message ) { $ message = $ this -> translate ( $ message ) ; $ this -> grid -> onRender [ ] = function ( Grid $ grid ) use ( $ operation , $ message ) { $ grid [ 'form' ] [ Operation :: ID ] [ Operation :: ID ] -> getControlPrototype ( ) -> setAttribute ( "data-grido-confirm-$operation" , $ message ) ; } ; return $ this ; }
Sets client side confirm for operation.
@param string $operation
@param string $message
@return Operation
Sets client side confirm for operation .