Skip to content

Commit

Permalink
withForm() renders fields within form tag with these attributes "flex…
Browse files Browse the repository at this point in the history
…-cell gutter default-cell-12" to support "layout" properties of form field definitions
  • Loading branch information
kctang committed Jun 23, 2019
1 parent 76e3c8c commit 7ae5f39
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.

- ...

## [0.1.5] - 2019-06-23

### Changed

- `withForm()` renders fields within form tag with these attributes `flex-cell gutter default-cell-12` to support `layout` properties of form field definitions.

## [0.1.4] - 2019-06-21

### Changed
Expand Down Expand Up @@ -50,7 +56,8 @@ All notable changes to this project will be documented in this file.
### Fixed
- Fix "Cannot find module '@angular-mdc/web'" ([#1](kctang/dialog-service#1))

[Unreleased]: https://github.com/kctang/dialog-service/compare/v0.1.4...HEAD
[Unreleased]: https://github.com/kctang/dialog-service/compare/v0.1.5...HEAD
[0.1.5]: https://github.com/kctang/dialog-service/compare/v0.1.4...v0.1.5
[0.1.4]: https://github.com/kctang/dialog-service/compare/v0.1.3...v0.1.4
[0.1.3]: https://github.com/kctang/dialog-service/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/kctang/dialog-service/compare/v0.1.1...v0.1.2
Expand Down
4 changes: 3 additions & 1 deletion projects/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ <h1>dialog-service
</li>
</ul>
<div>
[ <a href="https://stackblitz.com/edit/dialog-service-starter">StackBlitz Template</a> |
[
<a href="https://github.com/kctang/dialog-service/blob/master/CHANGELOG.md">CHANGES</a>
<a href="https://stackblitz.com/edit/dialog-service-starter">StackBlitz Template</a> |
<a href="https://github.com/kctang/dialog-service-mat-demo">Minimal Demo for Angular
Material</a> ]
</div>
Expand Down
2 changes: 1 addition & 1 deletion projects/dialog-service/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dialog-service",
"version": "0.1.4",
"version": "0.1.5",
"description": "Reactive Angular modal dialogs. Create alert, confirmation, progress and form based dialogs without writing component templates.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion projects/dialog-service/src/lib/mat/Form.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 mat-dialog-title>{{data.title}}</h1>
<div mat-dialog-content>
<div *ngIf="data.content" [innerHtml]="data.content" class="content"></div>
<form [formGroup]="form" autocomplete="off">
<form [formGroup]="form" flex-cell gutter default-cell-12 autocomplete="off">
<quick-form-field [field]="field" [form]="form"
*ngFor="let field of formFields"></quick-form-field>
</form>
Expand Down

0 comments on commit 7ae5f39

Please sign in to comment.