branch icon

Lepton Theme - Custom component rendering for menu items #13373

Description

Resolves https://github.com/abpframework/abp/issues/12118

custom-component-lepton-theme

Since defining a custom component is related to a theme, this operation can't be planned without a theme dependency. So, the component code will be different according to different themes. Each theme should implement this logic itself if possible.

See https://github.com/abpframework/abp/pull/15611

Checklist

  • I fully tested it as developer / designer and created unit / integration tests
  • I documented it (or no need to document or I will create a separate documentation issue)
  • I worked with the design team to get their idea for UI/UX design (or no need to design for this PR)
  • I've assigned reviewer, related labels and set a milestone for this PR

How to test it?

UseComponent() method can be used in MenuContributor in a project that uses the basic theme.

context.Menu.Items.Add(
  new ApplicationMenuItem("Custom.1", "My Custom Menu", "#")
    .UseComponent(typeof(MyMenuComponent)));
Version
7.1.0
Release Date
22 marzo, 2023
Labels
lepton-theme