textfield

How to write by SpWML

(tf)
(tf, w:380, labelText:Abbreviation)
(tf, w:380, labelText:search, mode:search)
(tf, w:380, labelText:search, mode:searchPrefix)
(tf, w:380, labelText:search\ with\ clear, mode:searchAndClear)
(tf, w:380, labelText:input\ password, mode:password)
(tf, w:380, labelText:rounded\ type, type:rounded)

Summary

It is a block that can be set to text input without a child block.

It has a variable with parameters equivalent to Flutter TextField class .

To use this type, it is necessary to set TextFieldManager to SpWMLBuilder or SpWML widget.


Dart Class Reference

TextFieldElement class


SpWML Parameters

  • The common parameters.

  • Parent parameters. However, isSelectable is invalid.

  • labelText(String). Hint text with the function of moving to the upper left with animation.

  • hint(String). This is the hint text that is displayed when the input is empty.

  • type(String). Specifies the shape of the input box.Specify either material or rounded.

  • mode(String). Specifies the operation mode. Specify one of normal, password, passwordPrefix, search, searchPrefix, searchAndClear, manual. In manual mode, SpWML specification is invalid and the user setting value is reflected as it is.

  • iconNum(String). Set the icon type with codePoint .

  • iconSize (double).

  • iconColor (String). Color setting for icons. The color system .

  • suffixIconNum(String). Suffix Set the icon type with codePoint .

  • suffixIconSize(double). Suffix Set size of icon in px.

  • suffixIconSplashRadius(double). Specifies the size of the animation area for tapping the tail icon in px.

  • suffixIconColor(String). Color setting for the suffix icon. The color system .

  • cpL (double). Left content padding.

  • cpT (double). Top content padding.

  • cpR (double). Right content padding.

  • cpB (double). Bottom content padding.

  • maxLines(int?). Sets how many lines of text the text field will look like. This does not limit the actual number of input lines. However, if set to 1, line breaks are not allowed.

  • maxLength(int?). Maximum number of input characters for text.

  • fillColor(String?). Fill color when type is rounded.

  • radius(double). The corner rounding when type is rounded.