-
Notifications
You must be signed in to change notification settings - Fork 127
Platform: Text Input Component Technical Design
The text input is used to enter single of text. When empty, it can hold a placeholder similar to a select component. You can define the height and width of the text input and also determine specific behaviour when handling texts.
<fdp-input
[id]="inputID"
[size]="cozy|compact"
[placeholder]="Start writing something"
[maxLength]="35"
[disabled]="true | false">
</fdp-input>
The Input has the same features and functionality as the Input component in Fundamental NGX: Core. As such, the Platform Input component will be a wrapper around the Core Input component and will provide identical bindings as Input. Additionally, since this is an input element, it needs to implement the FormFieldControl as described in the FormGroup Layout or extend existing BaseInputComponent.
can be cozy
or compact
type of input form factors
maxlength variable is used to restrict the length of the input values.
The label for this form field.
The prompt text that is displayed when the input field is empty. Handled by form-field
.
N/A
N/A
N/A
N/A
Form, Label
Frank:: Please read my other comments I gave about TextArea also you guys should look at and very carefully study and master, Angular Forms. Template/Reactive Driven, Try to write several sample applications, dont start with this yet.
- Also we need to use common sense too:
- Why would you need attribute rows? on the input field?
- we will be changing type - size and leave this reserved for actual type, type is number, text, phone, email, ...
Frank::
- Why do you need maxLength ? the length should be always dictated by container. - Or if its not length like px then it can be limited by validators but this is something I already said