-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
priority:highShould fix soonShould fix soonstatus:in-progressImplementation in progressImplementation in progresstype:bugSomething isn't workingSomething isn't working
Description
I am using V2.5, cannot find AddSelectField extension method, using:
var formConfig = FormBuilder<Milestone>.Create()
.AddField(x => x.OperationGroupId, f =>
f.WithLabel(PropertyExtentions.GetDisplayLabel<Milestone>(p => p.OperationGroup))
.WithOptions(opSelect))
private async Task<(int value, string label)[]> GetOperationGroups()
{
var op = await _httpClientService.GetRecordsAsync<OperationGroup>();
return op.Select(p => new { value = p.Id, label = p.Name })
.Select(x => (x.value, x.label))
.ToArray();
}The int value not work (int value, string label) / always return 0, only string value works.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority:highShould fix soonShould fix soonstatus:in-progressImplementation in progressImplementation in progresstype:bugSomething isn't workingSomething isn't working