Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference of Orchard CMS Input field vs Text field?

Tags:

orchardcms

Would you help me to understand what's the difference of this two fields in Orchard CMS?

Many thanks,

Rocky

like image 996
user2814851 Avatar asked Sep 27 '13 15:09

user2814851


People also ask

What does text field do?

A text field is a basic text control that enables the user to type a small amount of text. When the user indicates that text entry is complete (usually by pressing Enter), the text field fires an action event. If you need to obtain more than one line of input from the user, use a text area.

What is the difference between text field and text area in HTML?

Definition and Usage The <textarea> tag defines a multi-line text input control. The <textarea> element is often used in a form, to collect user inputs like comments or reviews. A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).

What is a text field in a form?

Text fields allow users to enter text into a UI. They typically appear in forms and dialogs.


1 Answers

The InputField is newer than the TextField and has more options, such as the ability to set the type (e.g. text, tel, email), autofocus, autocomplete, placeholder text, editor css class and maxlength.

The TextField on the other hand supports a flavor, allowing you to turn the text field into a single line textbox, a textarea, a markdown editor, html editor, or any other flavor provided by any module.

In my opinion, we should consider getting rid of the Input Field and update the TextField in core with the capabilities found in InputField. This avoids confusion and at the same time offers greater flexibility.

like image 191
Sipke Schoorstra Avatar answered Sep 29 '22 09:09

Sipke Schoorstra