Starts in:
2 DAYS
15 HRS
48 MIN
58 SEC
Starts in:
2 D
15 H
48 M
58 S
Open Closed

How to use disable attribute with abp-lookup-select form control? #1297


User avatar
0
hilal.aksoy created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

3 Answer(s)
  • User Avatar
    0
    armanozak created

    Hi hilal.aksoy,

    You can set the disabled property of the component to true. Here is an example:

    <abp-lookup-select
      [disabled]="true"
      cid="authorIdFilter"
      [getFn]="service.getAuthorLookup"
      [(ngModel)]="filters.authorId"
      [ngModelOptions]="{ standalone: true }"
    ></abp-lookup-select>
    

    Please note that, if created by ABP Suite, there are two instances of abp-lookup-select on the same page: one inside the create/update form and another one in the advanced filters.

  • User Avatar
    0
    armanozak created

    Hi,

    Is this issue resolved?

    Have a nice week.

  • User Avatar
    0
    armanozak created

    Hi,

    Considering it is resolved, I am closing this issue.

    Have a nice week.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06