We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I think settings can be sorted on the UI with Weight / Order property.
Weight / Order
We can use like this (code side);
context.Add( new SettingDefinition( ... ) .WithProperty(SettingUiConst.Weight, "5") ... );
or like this (xml side);
"Setting1": { ... "Weight": "5" }
Code Example SettingInfo
public class SettingInfo { public short Weight { get; set; } ... }
Default value can be set zero.
SettingUiAppService
... SetSettingDefinitionPropertiesAsync(...) { ... // Default weight: 0 if(!si.Properties.ContainsKey(SettingUiConst.Weight)) { si.WithProperty(SettingUiConst.Weight, "0"); } ... }
in SettingUiAppService.GroupSettingDefinitions:
settingInfos.OrderByDescending(si => (short) si.Properties[SettingUiConst.Weight]).ToList();
The text was updated successfully, but these errors were encountered:
I think this works for settings, any ideas about sorting Group1 and Group2?
Sorry, something went wrong.
Sorry, i have no idea.
Anyway could sorting the group1 and group2?
No branches or pull requests
Hi,
I think settings can be sorted on the UI with
Weight / Order
property.We can use like this (code side);
or like this (xml side);
Code Example
SettingInfo
Default value can be set zero.
SettingUiAppService
in SettingUiAppService.GroupSettingDefinitions:
The text was updated successfully, but these errors were encountered: