public function getButtonsJS()
    {
        $buttons = $this->getButtons();
        $str = "";

        for ($x = 0; $x < count($buttons); $x++) {
            $str .= "'" . $buttons[$x] . "'";

            if ($x < (count($buttons) - 1)) {
                $str .= ",";
            }
        }

        return $str;
    }
public function getButtonsJS()
    {
        $buttons = $this->getButtons();
        $str = "";

        for ($x = 0; $x < count($buttons); $x++) {
            $str .= "'" . $buttons[$x] . "'";

            if ($x < (count($buttons) - 1)) {
                $str .= ",";
            }
        }

        return $str;
    }
public function getButtonsJS ( ) { $ buttons = $ this -> getButtons ( ) ; $ str = "" ; for ( $ x = 0 ; $ x < count ( $ buttons ) ; $ x ++ ) { $ str .= "'" . $ buttons [ $ x ] . "'" ; if ( $ x < ( count ( $ buttons ) - 1 ) ) { $ str .= "," ; } } return $ str ; }
Get all the current buttons rendered as a string for JS

@return array
Get all the current buttons rendered as a string for JS