Helper/Bootstrap/Button.php
public function submitForm(string $formId = '', string $targetId = '', bool $preventDefault = true)
    {
        static $attached = false;
        
        if ($attached) {
            Checkers::notice('This button is already attached to a form.');
            return $this;
        }
        $this->id = 'btnf' . self::$idCount++;
        Component::getVueJs()->registerSubmitLink($this->id, $formId, VueJs::EVENT_CLIC, $targetId, $preventDefault);
        return $this;
    }
public function submitForm(string $formId = '', string $targetId = '', bool $preventDefault = true)
    {
        static $attached = false;
        
        if ($attached) {
            Checkers::notice('This button is already attached to a form.');
            return $this;
        }
        $this->id = 'btnf' . self::$idCount++;
        Component::getVueJs()->registerSubmitLink($this->id, $formId, VueJs::EVENT_CLIC, $targetId, $preventDefault);
        return $this;
    }
public function submitForm ( string $ formId = '' , string $ targetId = '' , bool $ preventDefault = true ) { static $ attached = false ; if ( $ attached ) { Checkers :: notice ( 'This button is already attached to a form.' ) ; return $ this ; } $ this -> id = 'btnf' . self :: $ idCount ++ ; Component :: getVueJs ( ) -> registerSubmitLink ( $ this -> id , $ formId , VueJs :: EVENT_CLIC , $ targetId , $ preventDefault ) ; return $ this ; }
Set submit action
@staticvar boolean $attached
@param string $formId (without #)
@param string $targetId (without #)
@param bool $preventDefault
@return $this
Set submit action