Property | Type | Description | |
---|---|---|---|
$browseGlyphicon | Show/Hide browse glyphicon | ||
$callbacks | FileAPI events array | ||
$crop | Enable/disable crop | ||
$cropResizeHeight | Crop resize height | ||
$cropResizeMaxHeight | Crop resize max height | ||
$cropResizeMaxWidth | Crop resize max width | ||
$cropResizeWidth | Crop resize width | ||
$jcropSettings | JCrop settings | ||
$paramName | The parameter name for the file form data (the request argument name) | ||
$preview | Enable/disable files preview | ||
$selector | FileAPI selector | ||
$settings | Widget settings. | ||
$template | Widget template view |
Property | Type | Description | |
---|---|---|---|
$_attributeName | Real attribute name without any indexes in case this are setted |
Method | Description | |
---|---|---|
getSelector ( ) : string | ||
init ( ) | ||
register ( ) | Register all widget scripts and callbacks | |
registerClientScript ( ) | Register widget asset. | |
registerFiles ( ) | Registering already uploaded files. | |
registerTranslations ( ) | Register widget translations. | |
run ( ) | ||
t ( string $category, string $message, array $params = [], string $language = null ) : string | Widget translation function. |
Method | Description | |
---|---|---|
getAttributeName ( ) : null | string | ||
registerCallbacks ( ) | Register widget callbacks. | |
registerDefaultCallbacks ( ) | Register default widget callbacks | |
registerMainClientScript ( ) | Register widget main asset. |
protected getAttributeName ( ) : null | string | ||
return | null | string | Real attribute name without any indexes in case this are setted |
protected registerDefaultCallbacks ( ) |
protected registerMainClientScript ( ) |
public static t ( string $category, string $message, array $params = [], string $language = null ) : string | ||
$category | string | the message category. |
$message | string | the message to be translated. |
$params | array | the parameters that will be used to replace the corresponding placeholders in the message. |
$language | string | the language code (e.g. `en-US`, `en`). If this is null, the current [[\yii\base\Application::language|application language]] will be used. |
return | string | the translated message. |
protected $_attributeName |
public $paramName |