Skip to content
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

providing default values to components #353

Open
5 tasks
prashantchavan85 opened this issue Apr 19, 2023 · 0 comments
Open
5 tasks

providing default values to components #353

prashantchavan85 opened this issue Apr 19, 2023 · 0 comments

Comments

@prashantchavan85
Copy link

prashantchavan85 commented Apr 19, 2023

Describe the bug
which template:

  • MaterialDesignFrameworkModule — Material Design
  • Bootstrap3FrameworkModule — Bootstrap 3
  • Bootstrap4FrameworkModule — Bootstrap 4
  • NoFrameworkModule — plain HTML
  • Other (please specify below)

Is there any way we can have default values for components in layout or schema ? e.g. checkboxes value can be true or false, date components can have default value to todays date etc.

We are trying to avoid the setting default values on each component OnInit, it is causing too many updates to formGroup valuechanges subscription callback method.

To Reproduce
Steps to reproduce the behavior:

  1. looking for demo which sets default values.

Expected behavior
Provide some default values to form controls on page load instead of setting it on the each component oninit.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Log output covering before error and any error statements

Insert log hereCopy

Additional context
Add any other context about the problem here.

Detailed Description

Context

Possible Implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant