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

How can we used this component as "disabled"? #338

Open
jvegaseg opened this issue Mar 2, 2021 · 1 comment
Open

How can we used this component as "disabled"? #338

jvegaseg opened this issue Mar 2, 2021 · 1 comment

Comments

@jvegaseg
Copy link

jvegaseg commented Mar 2, 2021

I need use the disable attribute in order to not allow user to modify the field.

With disable attribute it does not work.

Is there any way to do it?

Regards

@WongYueKeung
Copy link

in case you using Ng Bootstrap:

<div class="input-group" ngbDropdown placement="bottom-right">
             <div class="input-group-text px-2">
               <div class="w-20px h-20px rounded" [ngStyle]="{'background-color': wizard.data.colorPresentOnMap}"></div>
             </div>
             <input type="text" class="form-control" value="#00acac" [(ngModel)]="wizard.data.colorPresentOnMap" [disabled]="wizard.data.colorPresentOnMapAuto"/>
             <button class="btn btn-outline-inverse" ngbDropdownToggle [disabled]="wizard.data.colorPresentOnMapAuto"><i class="fa fa-tint"></i></button>
             <div class="dropdown-menu dropdown-toggle w-250px" ngbDropdownMenu>
               <color-sketch color="#00acac" (onChange)="handleChangeColorPresentOnMap($event)"></color-sketch>
             </div>
           </div>

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

2 participants