Yii2 widget pluginOptions

I am trying to create a widget, there are some js files that are used in.

I have seen in some widgets that are using ‘pluginOptions’ with some params (eg ‘uploadUrl’ in fileInputUpload).

How can I declare that kind of params in my widget in the way that their values could be used in js files (js classes)?

In other words I need to declare some params in widget declaration that schould be used in js too.