Class yii\widgets\ActiveFormAsset

继承yii\widgets\ActiveFormAsset » yii\web\AssetBundle » yii\base\BaseObject
实现yii\base\Configurable
可用自版本2.0
源代码 https://github.com/yiisoft/yii2/blob/master/framework/widgets/ActiveFormAsset.php

The asset bundle for the yii\widgets\ActiveForm widget.

公共属性

隐藏继承的属性

属性类型描述定义在
$basePath string The Web-accessible directory that contains the asset files in this bundle. yii\web\AssetBundle
$baseUrl string The base URL for the relative asset files listed in $js and $css. yii\web\AssetBundle
$css array List of CSS files that this bundle contains. yii\web\AssetBundle
$cssOptions array The options that will be passed to yii\web\View::registerCssFile() when registering the CSS files in this bundle. yii\web\AssetBundle
$depends yii\widgets\ActiveFormAsset
$js yii\widgets\ActiveFormAsset
$jsOptions array The options that will be passed to yii\web\View::registerJsFile() when registering the JS files in this bundle. yii\web\AssetBundle
$publishOptions array The options to be passed to yii\web\AssetManager::publish() when the asset bundle is being published. yii\web\AssetBundle
$sourcePath yii\widgets\ActiveFormAsset

公共方法

隐藏继承的方法

方法描述定义在
__call() 调用不是类方法的已命名方法. yii\base\BaseObject
__construct() 构造函数. yii\base\BaseObject
__get() 返回对象属性的值. yii\base\BaseObject
__isset() 检查属性是否已设置, 即已定义且不为null. yii\base\BaseObject
__set() 设置对象属性的值. yii\base\BaseObject
__unset() 将对象属性设置为null. yii\base\BaseObject
canGetProperty() 返回一个值, 指示属性是否可读. yii\base\BaseObject
canSetProperty() 返回一个值, 指示属性是否可写. yii\base\BaseObject
className() 返回此类的完全限定名称. yii\base\BaseObject
hasMethod() 返回一个值, 指示方法是否已定义. yii\base\BaseObject
hasProperty() 返回一个值, 指示属性是否已定义. yii\base\BaseObject
init() Initializes the bundle. yii\web\AssetBundle
publish() Publishes the asset bundle if its source code is not under Web-accessible directory. yii\web\AssetBundle
register() Registers this asset bundle with a view. yii\web\AssetBundle
registerAssetFiles() Registers the CSS and JS files with the given view. yii\web\AssetBundle

属性详情

$depends public 属性
public $depends = ['yii\web\YiiAsset']
$js public 属性
public $js = ['yii.activeForm.js']
$sourcePath public 属性
public $sourcePath '@yii/assets'