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

Align feature child inputs #21250

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Align feature child inputs #21250

merged 2 commits into from
Nov 5, 2024

Conversation

masum-ulu
Copy link
Member

Resolves #21228

image

Checklist

  • I fully tested it as developer / designer and created unit / integration tests

How to test it?

  • Create MyFeatureDefinitionProvider.cs file to templates\app\aspnet-core\src\MyCompanyName.MyProjectName.Application.Contracts and paste code below
using Volo.Abp.Features;
using Volo.Abp.Localization;
using Volo.Abp.Validation.StringValues;

namespace MyCompanyName.MyProjectName;

public class MyFeatureDefinitionProvider : FeatureDefinitionProvider
{
    public override void Define(IFeatureDefinitionContext context)
    {
        var myGroup = context.AddGroup("MyApp");

        var reportingFeature = myGroup.AddFeature(
            "MyApp.Reporting"
        );

        reportingFeature.CreateChild(
            "MyApp.PdfReporting"
        );

        reportingFeature.CreateChild(
            "MyApp.ExcelReporting",
            defaultValue: "TestTest",
            valueType: new FreeTextStringValueType()
        );

        reportingFeature.CreateChild(
            "MyApp.ExcelReporting2",
            defaultValue: "4",
            valueType: new FreeTextStringValueType(
                new NumericValueValidator(0, 1000000))
        );
    }
}
  • Run copy-to-templates

@masum-ulu masum-ulu added this to the 8.3-patch-final milestone Nov 4, 2024
@gizemmutukurt gizemmutukurt requested review from oykuermann and removed request for gizemmutukurt November 4, 2024 12:13
Copy link
Contributor

@oykuermann oykuermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@oykuermann oykuermann merged commit 5956525 into rel-8.3 Nov 5, 2024
2 of 3 checks passed
@oykuermann oykuermann deleted the issue/21228 branch November 5, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants