According to the purpose of the component, it can be divide into six categories: Feedback feedback, form form, basic basic, data data, navigation navigation, other.
The form is mainly responsible for the data collection function in the web page; the user needs to fill in the input data and submit it to the database, then this component is the form class.
This article mainly explains the text and selectors in the form, in which the text is divide into input short text, InputAutocomplete short text association and InputMultiline long text.
input short text
Definition: Use for user text input and submitted to the database as a string.
scenes to be use:
- When the user nees to enter characters
- Input via mouse and keyboard
- Type text is usually place in an input box
For example, the form fille in for NetEase Koala coupon redemption is a short text input component, with a title in front and a text input box in the back.
The display form of the input short text component can be divide into three categories. The first category is that the title and the input box are arrangd left and right; the second category is that the title and the input box are arrange up and down; the third column does not nee the arrangement of the title.
When the title and the input box are arrange left and right, the existing states of the short text component are: initial state, active state, error reporting state, complete state and disablestate.
The common typesetting of form types is left-right typesetting. At the same time, between forms, the title is left-aligne, and the input box is left-aligne. Sometimes the title name is too long, so it is not good enough to arrange it left and right. In this case, it needs to be arrange up and down.
When the title and input box are typeset up and down, the existence state and the left and right arrangement are consistent.
When there is no title, there are rules and logic in which states are arrange left and right.
InputAutocomplete short text association
Definition: The user is use for text input. During the input process, the matching text option will be associate and submitte to the database in the form of a string.
scenes to be use:
- When the user is require to enter text.
- Provides associative matching text to reuce user input costs.
- During the input process, according to the content entere by the user, matching options appear, and the submitte data is text rather than enumeration items.
For example, Baidu search, when you enter a keyword in the input box, the correspondng associative matching text will appear.
Compare with the input Kazakhstan WhatsApp Number List short text component, the only difference between InputAutocomplete short text association is that it adds an association matching option, and submits text instead of enumeration items.
When the title and input Kazakhstan WhatsApp Number List box are arrange left and right, the states of the InputAutocomplete short text association component are: initial state, active state, error reporting state, complete state and disable state.
The state and rule logic arrangeup and down are arrange in the same way as left and right.
The states and rule logic without headers are arrange side by side.
InputMultiline long text
Definition: User use for long text input and submitted to the database as text.
scenes to be use:
- Multi-paragraph text input
- line break require
- Entere text is usually place in an input box
Arrangement logic and rules up and down are the same as left and right.