Open Closed

Change Input Form Field for Claims in Identity Module on Angular #5750


User avatar
0
SamirBoutazzout created

As the title says, I would like to customize the Claims component in angular, more specifically the "Value" input field. I would like it to be a dropdown list to select a value and assign it to the claim selected instead of the text input field. I looked into Replaceable Components but I couldn't find the Source Code of the default Claims component.

If anyone can direct me in the right direction to achieve my objective here, I would be very appreciative. Thank you

  • ABP Framework version: v6.0.2 Commercial
  • UI Type: Angular
  • Database System: EF Core PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

1 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    you can modify the field with "Dynamic form extensions" feature. you mah read the documentation. https://docs.abp.io/en/abp/latest/UI/Angular/Dynamic-Form-Extensions here the value is.

      {
        type: ePropType.String,
        name: 'valueType',
        displayName: 'AbpIdentity::ValueType',
        sortable: true,
        columnWidth: 200,
        valueResolver: data => of(data.getInjected(ClaimsComponent).getTypeName(data.record.valueType)),
      },
    

    contributor field name is eIdentityComponents.Claims

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19