bionsources.blogg.se

Bootstrap color picker
Bootstrap color picker












bootstrap color picker
  1. Bootstrap color picker install#
  2. Bootstrap color picker code#

Global Override: Set Yii::$app->params to false in your Yii 2 application config params.php. One can override this and prevent the default yii2 bootstrap assets (CSS & JS) from loading by doing one or all of the following: This is controlled by the property bsDependencyEnabled within the asset bundle (which defaults to true). Yii\bootstrap5\BootstrapAsset and/or yii\bootstrap5\BootstrapPluginAsset for bootstrap 5.x ( bsVersion = 5 setting) Yii\bootstrap4\BootstrapAsset and/or yii\bootstrap4\BootstrapPluginAsset for bootstrap 4.x ( bsVersion = 4 setting) Yii\bootstrap\BootstrapAsset and/or yii\bootstrap\BootstrapPluginAsset for bootstrap 3.x ( bsVersion = 3 setting) The Krajee extension asset bundle(s) by default depend on one of the following asset bundles to load the Bootstrap CSS and JS: "yiisoft/yii2-bootstrap": Bootstrap CSS/JS

Bootstrap color picker install#

"yiisoft/yii2-bootstrap4": install yiisoft/yii2-bootstrap, add the repo to the require section of your application's composer.json. "yiisoft/yii2-bootstrap5": install yiisoft/yii2-bootstrap4, add the repo to the require section of your application's composer.json. To install yiisoft/yii2-bootstrap5, add the repo to the require section of your application's composer.json. Similarly, if bsVersion is set to 3.x and yiisoft/yii2-bootstrap is not installed, an exception message will be thrown mentioning you to install the yiisoft/yii2-bootstrap extension. If bsVersion is set to 4.x and yiisoft/yii2-bootstrap4 is not installed, then an exception message will be thrown mentioning you to install the yiisoft/yii2-bootstrap4 extension. If bsVersion is set to 5.x and yiisoft/yii2-bootstrap5 is not installed, then an exception message will be thrown mentioning you to install the yiisoft/yii2-bootstrap5 extension. This dependency has not been pre-built into the composer configuration for Krajee extensions, to allow better control to the developers in configuring their bootstrap library version. You need to install one of yiisoft/yii2-bootstrap or yiisoft/yii2-bootstrap4 or yiisoft/yii2-bootstrap5 extensions manually in your application to enable Bootstrap 3.x or 4.x or 5.x functionality respectively. Bootstrap 3.x version will be assumed as default). If ColorInput::bsVersion property is not set, and Yii::$app->params is also not set, ColorInput::bsVersion property will default to 3.x (i.e. 'adminEmail' => ColorInput::bsVersion property is set, in addition to Yii::$app->params, the extension level setting ( ColorInput::bsVersion property) will override the Yii::$app->params. 'bsVersion' => '5.x', // this will set globally `bsVersion` to Bootstrap 5.x for all Krajee Extensions

Bootstrap color picker code#

To set this up, add this section of code to your application params configuration file (e.g. In order to do this, you can setup the bsVersion property within Yii 2 application params (i.e. Generally, you may also want to set a default version globally for all Krajee Extensions (instead of setting it for each widget or extension separately).














Bootstrap color picker