Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dart-league/ng_bootstrap

A bootstrap 4 and angular 2 package for dartlang
https://github.com/dart-league/ng_bootstrap

Last synced: about 2 months ago
JSON representation

A bootstrap 4 and angular 2 package for dartlang

Awesome Lists containing this project

README

        

# ng_bootstrap

[Join the chat](https://gitter.im/dart-league/ng_bootstrap)

[Usage & Demo](https://dart-league.github.io/ng_bootstrap/)

# Getting Started

1\. Create a new angular2-dart app: https://angular.io/docs/dart/latest/quickstart.html

2\. Add `ng_bootstrap` to `pubspect.yaml`:

```yaml
dependencies:
...
ng_bootstrap: any
...
```

3\. Add css stylesheet link to `index.html`:

```html

...

...

```

4\. Add needed `ng_bootstrap` directives to your components:

```dart
import 'package:ng_bootstrap/ng_bootstrap.dart';

@Component(
// ...
directives: const [bsDirectives])
```

## Customize Styles - Create Custom Themes

To customize default styles to create custom themes based on `ng_bootstrap` theme,
the best option is to create an `scss` file that imports the `package:ng_bootstrap/all.scss`
file, for example:

```scss
// variables should be set before importing default theme
$brand-primary: red !important;

// you could also import a custom variables theme if you prefer
// but it should be done before importing default theme
@import 'path/to/_my-variables';

@import 'package:ng_bootstrap/all';
```

Then in your `index.html` file change the `link` tag to point to the new theme.

```html

...

...

```

## Components

- [x] [Accordion](https://dart-league.github.io/ng_bootstrap/#accordion)
- [x] [Alert](https://dart-league.github.io/ng_bootstrap/#alert)
- [x] [Buttons](https://dart-league.github.io/ng_bootstrap/#buttons)
- [x] [Carousel](https://dart-league.github.io/ng_bootstrap/#carousel)
- [x] [Collapse](https://dart-league.github.io/ng_bootstrap/#collapse)
- [x] [DatePicker](https://dart-league.github.io/ng_bootstrap/#datepicker)
- [x] [DatePickerPopup](https://dart-league.github.io/ng_bootstrap/#datepicker)
- [x] [Dropdown](https://dart-league.github.io/ng_bootstrap/#dropdown)
- [x] [Modal](https://dart-league.github.io/ng_bootstrap/#modal)
- [x] [Pagination](https://dart-league.github.io/ng_bootstrap/#pagination)
- [x] [Popover](https://dart-league.github.io/ng_bootstrap/#popover)
- [x] [Progressbar](https://dart-league.github.io/ng_bootstrap/#progressbar)
- [x] [PromptService](https://dart-league.github.io/ng_bootstrap/#prompt)
- [x] [Rating](https://dart-league.github.io/ng_bootstrap/#rating)
- [x] [Tabs](https://dart-league.github.io/ng_bootstrap/#tabs)
- [x] [Timepicker](https://dart-league.github.io/ng_bootstrap/#timepicker)
- [x] [Tooltip](https://dart-league.github.io/ng_bootstrap/#tooltip)
- [x] [Typeahead](https://dart-league.github.io/ng_bootstrap/#typeahead)
- [x] [Grid/Table](https://dart-league.github.io/ng_bootstrap/index.html#table)
- [x] [FileInput](https://dart-league.github.io/ng_bootstrap/index.html#file_upload)
- [x] [TextInput](https://dart-league.github.io/ng_bootstrap/index.html#text_input)
- [ ] ImageInput
- [ ] SignItInput
- [ ] SignInput
- [ ] Charts
- [ ] Header Bar
- [ ] Scafold - Base Layout

## Contribution

[Create new issues](https://github.com/dart-league/ng_bootstrap/issues/new)

[Fork me](https://github.com/dart-league/ng_bootstrap/issues#fork-destination-box)

### TODO
- [ ] support animation (in progress...)