public function css( $cssClasses )
    {
        if ( ! $cssClasses )
        {
            return $this;
        }

        $cssClasses = explode( ' ', $cssClasses );

        foreach ( $cssClasses as $cssClass )
        {
            if ( $cssClass && false === in_array( $cssClass, $this->cssClasses ) )
            {
                $this->cssClasses[] = $cssClass;
            }
        }

        return $this;
    }
public function css( $cssClasses )
    {
        if ( ! $cssClasses )
        {
            return $this;
        }

        $cssClasses = explode( ' ', $cssClasses );

        foreach ( $cssClasses as $cssClass )
        {
            if ( $cssClass && false === in_array( $cssClass, $this->cssClasses ) )
            {
                $this->cssClasses[] = $cssClass;
            }
        }

        return $this;
    }
public function css ( $ cssClasses ) { if ( ! $ cssClasses ) { return $ this ; } $ cssClasses = explode ( ' ' , $ cssClasses ) ; foreach ( $ cssClasses as $ cssClass ) { if ( $ cssClass && false === in_array ( $ cssClass , $ this -> cssClasses ) ) { $ this -> cssClasses [ ] = $ cssClass ; } } return $ this ; }
Add a CSS class to the element. Multiple classes can be passed as a space-separated string.

@param $cssClasses

@return $this
Add a CSS class to the element . Multiple classes can be passed as a space - separated string .