sp-dev-fx-controls-react icon indicating copy to clipboard operation
sp-dev-fx-controls-react copied to clipboard

[Enhancement] Implement custom sorting of fields in a DynamicForm

Open tahawkins21 opened this issue 2 years ago • 4 comments

Category

[x] Enhancement

[ ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [Latest]

Expected / Desired Behavior / Question

I would like to see the ability to control the order of list columns that are rendered using a DynamicForm component. Assumption is that a property could be added to IDynamicFormProps.tsx "fieldOrder" that takes an array of internal field names that will be rendered in order, or similar.

It looks like IDynamicFieldProps already has an Order prop to work with, though I haven't figured out how to make that work in DynamicForm.

Thanks!

tahawkins21 avatar Jan 07 '23 01:01 tahawkins21

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Jan 07 '23 01:01 ghost

Thank you for submitting your first issue to this project.

github-actions[bot] avatar Jan 07 '23 01:01 github-actions[bot]

It looks like dynamic form uses the column order on content type level , you can configure content type column order as work around image

wuxiaojun514 avatar Jan 30 '23 03:01 wuxiaojun514

Hi @tahawkins21,

Following linked PR merged, this enhancement should be available in the next beta release.

Thanks to you for raising this and @srpmtt for the contribution!

michaelmaillot avatar Aug 16 '24 08:08 michaelmaillot