Développement

Astuces de développement

Outils pour utilisateurs

Outils du site


langages:angular:outils:ngxbootstrap

Ceci est une ancienne révision du document !


Bootstrap & ngx-bootstrap

Installation

ng add ngx-bootstrap

Utisisation de Bootstrap avec un fichier _variables.scss

Create an empty file _variables.scss in src/.

If you are using bootstrap-sass, add the following to _variables.scss:

$icon-font-path: '../node_modules/bootstrap-sass/assets/fonts/bootstrap/';
//changer les couleurs de base de Bootstrap
$primary: #e83e8c;
$warning: #fd7e14;
$danger: #dc3545;

In styles.scss add the following:

@import 'variables';
@import '../node_modules/bootstrap/scss/bootstrap';

Imports

Il faut intégrer les modules utilisés dans app.module.ts

exemple :

import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
...

@NgModule({
   ...
   imports: [BsDropdownModule.forRoot(), ... ],
    ...
})
langages/angular/outils/ngxbootstrap.1548527231.txt.gz · Dernière modification: 2019/01/26 19:27 de jonathan