protected function prepareOption($name)
    {
        if (!empty($this->$name) && is_string($this->$name)) {
            return $this->$name;
        }
        return !empty($this->bootstrapDefaults[$name]) ? $this->bootstrapDefaults[$name] : '';
    }
protected function prepareOption($name)
    {
        if (!empty($this->$name) && is_string($this->$name)) {
            return $this->$name;
        }
        return !empty($this->bootstrapDefaults[$name]) ? $this->bootstrapDefaults[$name] : '';
    }
protected function prepareOption ( $ name ) { if ( ! empty ( $ this -> $ name ) && is_string ( $ this -> $ name ) ) { return $ this -> $ name ; } return ! empty ( $ this -> bootstrapDefaults [ $ name ] ) ? $ this -> bootstrapDefaults [ $ name ] : '' ; }
Sets JS option for chosen element.
@param string $name Name of the option
@return string
Sets JS option for chosen element .