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

change codeLength in app #46

Closed
mihai-did opened this issue Sep 27, 2021 · 5 comments
Closed

change codeLength in app #46

mihai-did opened this issue Sep 27, 2021 · 5 comments
Labels
enhancement New feature or request in progress

Comments

@mihai-did
Copy link

I have a use-case when i have to change the code length depending of the country i seleced. I used [codeLength]="number_length" where i change the number_length in a function . It works only once

@mihai-did
Copy link
Author

and one more thing....how i change the width of the lines...everything is so big...i want it to be smaller...i want to make it responsive depending on width

@AlexMiniApps
Copy link
Owner

@mihai-did

  1. For changing of the codeLength you can recreate the component with the *ngIf directive with the desired provided options value.
  2. You can change any style as you would like as described here:
    https://github.com/AlexMiniApps/angular-code-input#view

@mihai-did
Copy link
Author

Thank you for your response. These worked....i figured that out after some time i posted here...i was curious if it was another way, but these works fine....it's not the most elegant style because it has that appearance and disappear effect.
And for the css...someone in the project made a global class for the component....i removed and now works fine.

@AlexMiniApps
Copy link
Owner

@mihai-did I am agreed that this solution is not elegant, but it is the fastest way to resolve :)

@AlexMiniApps AlexMiniApps added enhancement New feature or request and removed await feedback labels Sep 28, 2021
@AlexMiniApps AlexMiniApps reopened this Oct 25, 2021
AlexMiniApps added a commit that referenced this issue Nov 10, 2021
- Always uppercase keyboard #51
- Change codeLength in app #46
- Delete button is not triggering on (codechanged) #44
@AlexMiniApps
Copy link
Owner

@mihai-did please install the new version v1.6.0. It was fixed in that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in progress
Projects
None yet
Development

No branches or pull requests

2 participants