src/Modal.php
public function addDenyAction($label, $jsAction)
    {
        $b = new Button();
        $b->set($label)->addClass('red cancel');
        $this->addButtonAction($b);
        $this->options['modal_option']['onDeny'] = $jsAction;

        return $this;
    }
public function addDenyAction($label, $jsAction)
    {
        $b = new Button();
        $b->set($label)->addClass('red cancel');
        $this->addButtonAction($b);
        $this->options['modal_option']['onDeny'] = $jsAction;

        return $this;
    }
public function addDenyAction ( $ label , $ jsAction ) { $ b = new Button ( ) ; $ b -> set ( $ label ) -> addClass ( 'red cancel' ) ; $ this -> addButtonAction ( $ b ) ; $ this -> options [ 'modal_option' ] [ 'onDeny' ] = $ jsAction ; return $ this ; }
Add a deny action to modal.

@param $label.
@param $jsAction : Javascript action that will run when deny is click.

@return $this
Add a deny action to modal .