trntv\filekit\widget\Upload::registerClientScript PHP Méthode

registerClientScript() public méthode

Registers required script for the plugin to work as jQuery File Uploader
    public function registerClientScript()
    {
        UploadAsset::register($this->getView());
        $options = Json::encode($this->clientOptions);
        if ($this->sortable) {
            JuiAsset::register($this->getView());
        }
        $this->getView()->registerJs("jQuery('#{$this->getId()}').yiiUploadKit({$options});");
    }