protected function htmlOptionsResult($value = '')
    {
        $class = !empty($this->defaults['resultClass']) ? $this->defaults['resultClass'] . $value : '';
        $style = !empty($this->defaults['resultStyle']) ? $this->defaults['resultStyle'] : '';

        if (!empty($this->bootstrapDefaults['resultClass'])) {
            $class .= $this->bootstrapDefaults['resultClass'];
        }
        if (!empty($this->bootstrapDefaults['resultStyle'])) {
            $style .= $this->bootstrapDefaults['resultStyle'];
        }
        if (!empty($this->resultClass) && is_string($this->resultClass)) {
            $class .= ' ' . $this->resultClass;
        }
        if (!empty($this->resultStyle) && is_string($this->resultStyle)) {
            $style .= ' ' . $this->resultStyle;
        }

        return [
            'class' => $class ?: null,
            'style' => $style ?: null,
        ];
    }
protected function htmlOptionsResult($value = '')
    {
        $class = !empty($this->defaults['resultClass']) ? $this->defaults['resultClass'] . $value : '';
        $style = !empty($this->defaults['resultStyle']) ? $this->defaults['resultStyle'] : '';

        if (!empty($this->bootstrapDefaults['resultClass'])) {
            $class .= $this->bootstrapDefaults['resultClass'];
        }
        if (!empty($this->bootstrapDefaults['resultStyle'])) {
            $style .= $this->bootstrapDefaults['resultStyle'];
        }
        if (!empty($this->resultClass) && is_string($this->resultClass)) {
            $class .= ' ' . $this->resultClass;
        }
        if (!empty($this->resultStyle) && is_string($this->resultStyle)) {
            $style .= ' ' . $this->resultStyle;
        }

        return [
            'class' => $class ?: null,
            'style' => $style ?: null,
        ];
    }
protected function htmlOptionsResult ( $ value = '' ) { $ class = ! empty ( $ this -> defaults [ 'resultClass' ] ) ? $ this -> defaults [ 'resultClass' ] . $ value : '' ; $ style = ! empty ( $ this -> defaults [ 'resultStyle' ] ) ? $ this -> defaults [ 'resultStyle' ] : '' ; if ( ! empty ( $ this -> bootstrapDefaults [ 'resultClass' ] ) ) { $ class .= $ this -> bootstrapDefaults [ 'resultClass' ] ; } if ( ! empty ( $ this -> bootstrapDefaults [ 'resultStyle' ] ) ) { $ style .= $ this -> bootstrapDefaults [ 'resultStyle' ] ; } if ( ! empty ( $ this -> resultClass ) && is_string ( $ this -> resultClass ) ) { $ class .= ' ' . $ this -> resultClass ; } if ( ! empty ( $ this -> resultStyle ) && is_string ( $ this -> resultStyle ) ) { $ style .= ' ' . $ this -> resultStyle ; } return [ 'class' => $ class ? : null , 'style' => $ style ? : null , ] ; }
Sets preselected value HTML options.
@param string $value Identificator of the result row
@return array
Sets preselected value HTML options .