Skip to content

Commit

Permalink
Merge pull request #126 from monstrfolk/master
Browse files Browse the repository at this point in the history
Fix export for ButtonWidget.
  • Loading branch information
ebrehault authored Aug 21, 2017
2 parents e56a1a1 + 30bda11 commit 648b4cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/defaultwidgets/defaultwidgetregistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {
RadioWidget,
RangeWidget,
SelectWidget,
StringWidget
StringWidget,
ButtonWidget
} from './';

import { WidgetRegistry } from '../widgetregistry';
Expand Down Expand Up @@ -43,6 +44,8 @@ export class DefaultWidgetRegistry extends WidgetRegistry {
this.register('boolean', CheckboxWidget);
this.register('checkbox', CheckboxWidget);

this.register('button', ButtonWidget);

this.setDefaultWidget(StringWidget);
}
}
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export {
SelectWidget,
StringWidget,
TextAreaWidget,
DefaultWidgetRegistry,
ButtonWidget,
DefaultWidgetRegistry
} from './defaultwidgets';
export { SchemaFormModule } from './schema-form.module';

0 comments on commit 648b4cb

Please sign in to comment.