ant-design/docs/spec/direct.en-US.md
2023-05-24 14:27:03 +08:00

3.1 KiB
Raw Permalink Blame History

group type order title
Design Patterns Principles 5 Make it Direct

As Alan Cooper states「Where there is output, let there be input」. This is the principle of direct manipulation. egInstead of editing content on a separate page, do it directly in context.


In-Page Editing

Example of click to edit

Single-Field Inline Edit

If 「readability」 is more important than 「editability」, 「click to edit」 can be used.


Example of Text link/Icon Edit

If the priority is given to 「readability」 and the 「editability」 of operation lines need to be highlighted at the same time, 「text link/icon edit」can be used.


Example of Multi-Field Inline Edit

Multi-Field Inline Edit

NoteIn「Multi-Field Inline Edit」, there are huge different between the content and required field, So it is more needed to use the 「Explain What Just Happened」 in 「Use Transition」to eliminate this visual effects.



Drag and Drop

Example of Drag and Drop List

Drag and Drop List

Drag and Drop can only be limited in one dimensionupper/down or left/right


Example of Drag and Drop picture/file

Drag and Drop picture/file