Class kartik\file\FileInput
Inheritance | kartik\file\FileInput » kartik\base\InputWidget |
---|---|
Uses Traits | kartik\base\TranslationTrait |
Available since version | 2.0 |
FileInput widget styled for Bootstrap 3.0 with ability to multiple file selection and preview, format button styles and inputs. Runs on all modern browsers supporting HTML5 File Inputs and File Processing API. For browser versions IE9 and below, this widget will gracefully degrade to normal HTML file input.
Wrapper for the Bootstrap FileInput JQuery Plugin by Krajee
See also:
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$i18n | array | The internalization configuration for this widget | kartik\file\FileInput |
$messageOptions | kartik\file\FileInput | ||
$showMessage | boolean | Whether to show 'plugin unsupported' message for IE browser versions 9 & below | kartik\file\FileInput |
Public Methods
Method | Description | Defined By |
---|---|---|
init() | kartik\file\FileInput | |
registerAssetBundle() | Registers the asset bundle and locale | kartik\file\FileInput |
registerAssets() | Registers the needed assets | kartik\file\FileInput |
Protected Methods
Method | Description | Defined By |
---|---|---|
validateIE() | Validates and returns content based on IE browser version validation | kartik\file\FileInput |
Property Details
The internalization configuration for this widget
Whether to show 'plugin unsupported' message for IE browser versions 9 & below
Method Details
public void init ( ) |
Registers the asset bundle and locale
public void registerAssetBundle ( ) |
Registers the needed assets
public void registerAssets ( ) |
Validates and returns content based on IE browser version validation
protected string validateIE ( $content, $validation = 'lt IE 10' ) | ||
$content | string | |
$validation | string |