public function getEncodedOptions()
    {
        $options = [];

        foreach ($this->options as $key => $value) {
            if ($value === null) {
                continue;
            }
            $options[$key] = $this->encode($value);
        }

        return Json::encode($options);
    }
public function getEncodedOptions()
    {
        $options = [];

        foreach ($this->options as $key => $value) {
            if ($value === null) {
                continue;
            }
            $options[$key] = $this->encode($value);
        }

        return Json::encode($options);
    }
public function getEncodedOptions ( ) { $ options = [ ] ; foreach ( $ this -> options as $ key => $ value ) { if ( $ value === null ) { continue ; } $ options [ $ key ] = $ this -> encode ( $ value ) ; } return Json :: encode ( $ options ) ; }
Returns json encoded options to configure js objects
@return string
Returns json encoded options to configure js objects