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

Improvements for Blazor UI module entity extensibility system #7729

Closed
hikalkan opened this issue Feb 15, 2021 · 1 comment
Closed

Improvements for Blazor UI module entity extensibility system #7729

hikalkan opened this issue Feb 15, 2021 · 1 comment

Comments

@hikalkan
Copy link
Member

hikalkan commented Feb 15, 2021

  • Lookup component should be improved. Currently, it looks like a textbox.

We will work on these after #6647 merge.

@ilkayilknur
Copy link
Contributor

In order to test the same functionality on the MVC side,

  • Open MyProjectNameModuleExtensionConfigurator.cs file in the MyCompanyName.MyProjectName.Domain.Shared project.
  • Copy the following code into the ConfigureExtraProperties method.
ObjectExtensionManager.Instance.Modules()
                .ConfigureIdentity(identity =>
                {
                    identity.ConfigureUser(user =>
                    {
                        user.AddOrUpdateProperty<string>("Role", config =>
                        {
                            config.UI.Lookup.Url = "/api/identity/roles";
                            config.UI.Lookup.DisplayPropertyName = "name";
                        });
                    });

                });
  • Run the MyCompanyName.MyProjectName.Web project.
  • Login and navigate to the IdentityManagement/Users item in the menu.
  • Click on the New User button. You will see the Role field in the modal.
  • It's a select2 component. As you see, you can see the initial items and filter the items by typing.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants