protected function bootstrapObjectOptions(String $selector, $options, $type)
    {
        if( ! empty($options) )
        {
            $optionsEncode = json_encode($options);
        }
        
        $return  = '<script>$("' . $selector . '").' . $type . '(' . ($optionsEncode ?? NULL) . ')';
        
        if( $parameter = $this->transferAttributesAndUnset('attr', 'on') )
        {
            $return .= '.on(\'' . $parameter . '\', function(){' . $this->transferAttributesAndUnset('attr', 'onCallback') . '})';
        }

        $return .= ';</script>';

        $this->bootstrapOptions[$type][$selector] = $return;

        return $return;
    }