8/18/2023 0 Comments Bootstrap form designerTo use with bootstrap 4 - you can set this to any string starting with To use with Bootstrap library - you can set this to any string starting with Refer the Bootstrap Info section for details and pre-requisites on setting this property. String | int, the bootstrap library version to be used for the extension. The Form Builder widget accepts these following settings: Option 2: SVG / JS version of Font Awesome (recommended for cleaner scaling vector icons and features like icon layers):Īlternatively, you can use the FontAwesomeAsset from the kartik-v/yii2-icons package to load the SVG/JS version. Option 1: Font CSS version of Font Awesome: ![]() To include font awesome assets on your page, include the following markup on the HEAD section of your view layout file, when bsVersion is set to 4.x or 5.x. Alternatively, you can load the free version of Font Awesome from their CDN.įor Krajee extensions and demos, the Font Awesome Free version is used and loaded as the Icons Display Package on all the Yii2 demo layouts. You can download Font Awesome 5.x icons from the icons website. Krajee extensions therefore will use Font Awesome 5.x icons instead of glyphicons when working with Bootstrap 5.x / 4.x. 'bsDependencyEnabled' => false // do not load bootstrap assets for a specific asset bundleīootstrap 5.x / 4.x does not include glyphicons or any other icons framework bundled with the library. 'adminEmail' => Bundle Specific Override: Set bsDependencyEnabled to false for the specific asset bundle within Yii2 Asset Manager component in your Yii 2 application config file. you need to ensure you load the Bootstrap CSS/JS manually in your view layout before Krajee CSS/JS assets 'bsDependencyEnabled' => false, // this will not load Bootstrap CSS and JS for all Krajee extensions This setting will be applied for all Krajee Extension Asset Bundles that depend on Bootstrap assets. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |