-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolves #1570 Formly button type demo added #1578
Conversation
|
type: 'button', | ||
props: { | ||
enableInput: true, | ||
// btnIcon: 'plus-circle', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to keep these comments in the demo code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed unused code
import { FormlyButtonOptionsModule } from './formly-button-options/formly-button-options.module'; | ||
import { importProvidersFrom } from '@angular/core'; | ||
import { FormlyButtonConfigurableModule } from './formly-button-configurable/formly-button-configurable.module'; | ||
const disable = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure this var isn't being used, if so it can be deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed unused code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple more bits of unused code + a change to the configurable. Also I noticed that prettier is failing.
@@ -0,0 +1,31 @@ | |||
import { Component } from '@angular/core'; | |||
import { FormGroup } from '@angular/forms'; | |||
import { SelectionMode } from '@gsa-sam/components'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SelectionMode & SdsFormlyTypes are not used, these imports can be removed.
} | ||
this.fields = [temp]; | ||
} | ||
inpuField = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo on this var name
@@ -0,0 +1,47 @@ | |||
import { AfterViewInit, Component, Input } from '@angular/core'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AfterViewInit not used
@@ -0,0 +1,39 @@ | |||
import { Component } from '@angular/core'; | |||
import { FormGroup } from '@angular/forms'; | |||
import { SelectionMode, TabPanelComponent } from '@gsa-sam/components'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SelectionMode, TabPanelComponent, SdsFormlyTypes not used
providers: [provideAnimations(), importProvidersFrom(FormlyModule.forRoot())], | ||
}), | ||
], | ||
argTypes: {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd be good to seperate out enableInput
& hasModel
from the other two inputs to make clear that they are just inputs to control this particular demo and are not used with the formly type. You could seperate them out by adding to argTypes like how id is seperated out in the pagination configurable demo. Here's a link to that config:
sam-design-system/libs/documentation/src/lib/storybook/pagination/pagination.stories.ts
Lines 51 to 58 in 06e9f95
id: { | |
table: { | |
category: 'paginationConfiguration', | |
}, | |
control: { | |
type: 'text', | |
}, | |
}, |
Description
This PR is for adding formly button type demos
#1570
Motivation and Context
Type of Change (Select One and Apply Github Label)
Screenshots
Which browsers have you tested?
Checklist: