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

No provision to set Html Props like id on form controls. #1144

Open
ramancloudsmartz opened this issue Jul 16, 2021 · 0 comments
Open

No provision to set Html Props like id on form controls. #1144

ramancloudsmartz opened this issue Jul 16, 2021 · 0 comments

Comments

@ramancloudsmartz
Copy link

ramancloudsmartz commented Jul 16, 2021

I'm submitting a


Feature Request / Proposal

I'm using


NG Dynamic Forms Version: `13.0.0`
NG Bootstrap

Description

I have two forms in angular application and they have some common named fields like state, county, city, zip code. So when I am going to use both forms inside an parent component I am getting HTML id conflict warning.

<div>
     <user-address-form>
     <user-billing-form>
</div>

As I have gone through the library codebase there no such options other than id. There should be some provision to add custom HTML property using additional params like htmlOptions*

new DynamicInputModel({

  id: 'name',
  label: 'Account Name',
  maxLength: 42,
  placeholder: 'Account Name',
  validators: {
    required: null
  },
  errorMessages: {
    required: '{{ label }} is required'
  }
  })

Exptected htmlOptions Property


new DynamicInputModel({

  id: 'name',
  htmlOptions: {
      id:""
  },
  label: 'Account Name',
  maxLength: 42,
  placeholder: 'Account Name',
  validators: {
    required: null
  },
  errorMessages: {
    required: '{{ label }} is required'
  }
  })
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