Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Drop Down in Feature #6017


User avatar
0
maharatha created

I want to add a drop down in Feature screen. How can i do that ? i am using Angular and Core


2 Answer(s)
  • User Avatar
    0
    maharatha created
    var regionFeature = context.Create(
                    AppFeatures.RegionFeature,
                    defaultValue: "US",
                    displayName: L("Region"),
                    inputType: new ComboboxInputType(RegionList())
                )
                
    private ILocalizableComboboxItemSource RegionList()
            {
                ILocalizableComboboxItem[] regComboboxItems = new ILocalizableComboboxItem[2];
                regComboboxItems[0] = new LocalizableComboboxItem
                {
                    DisplayText = L("US"),
                    Value = "US"
                };
                regComboboxItems[1] = new LocalizableComboboxItem
                {
                    DisplayText = L("UK"),
                    Value = "UK"
                };
                ILocalizableComboboxItemSource comboboxItemSource =
                    new StaticLocalizableComboboxItemSource(regComboboxItems);
                return comboboxItemSource;
            }
    

    The value is not showing up on the screen

  • User Avatar
    0
    ryancyq created
    Support Team

    Hi @maharatha, you need to add your featuer under SetFeatures() of AppFeatureProvider.cs

    See more details at https://aspnetboilerplate.com/Pages/Documents/Feature-Management