Legytma Schemas

Text Schema

https://legytma.com.br/schema/widget/text.schema.json

Created by Windol [email protected] at 14/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Allowed none text.schema.json

Text Type

object (Text)

all of

Text Properties

Property Type Required Nullable Defined by
type string Optional cannot be null Text
style object Optional cannot be null Text
maxLines Unknown Type Optional cannot be null Text
textDirection string Optional cannot be null Text
strutStyle object Optional cannot be null Text
textAlign string Optional cannot be null Text
locale object Optional cannot be null Text
overflow string Optional cannot be null Text
semanticsLabel string Optional cannot be null Text
softWrap boolean Optional cannot be null Text
textScaleFactor Merged Optional cannot be null Text
textWidthBasis Unknown Type Optional can be null Text

type

Identify the widget type

Used to identify parser. Every parser can permit only one type

type

type Type

string (Type)

type Constraints

constant: the value of this property must be equal to:

"Text"

style

Identify the widget type

Used to identify parser. Every parser can permit only one type

style

style Type

object (Text Style)

maxLines

Define the representation of integer acceptable.

Used to identify parser. Every parser can permit only one type

maxLines

maxLines Type

any of the folllowing: string or integer (Integer)

maxLines Default Value

The default value is:

10

maxLines Examples

"123"
"#32"
"0b111001"
"$23"
"0x162"
123

textDirection

Determine the text direction.

Used to identify parser. Every parser can permit only one type

textDirection

textDirection Type

string (Text Direction)

textDirection Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"ltr"  
"rtl"  

textDirection Examples

"ltr"
"rtl"

strutStyle

Created by Windol [email protected] at 30/04/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

strutStyle

strutStyle Type

object (Strut Style)

textAlign

Determine the text alignment

Used to identify parser. Every parser can permit only one type

textAlign

textAlign Type

string (Text Align)

textAlign Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"left"  
"right"  
"center"  
"justify"  
"start"  
"end"  

textAlign Examples

"left"
"right"
"center"
"justify"
"start"
"end"

locale

Locale.

This parser is not implemented, must be assigned using registerLogic

locale

locale Type

object (Locale)

overflow

Identify the widget type

Used to identify parser. Every parser can permit only one type

overflow

overflow Type

string (Text Overflow)

overflow Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"ellipsis"  
"clip"  
"fade"  

overflow Examples

"ellipsis"
"clip"
"fade"

semanticsLabel

semanticsLabel

semanticsLabel Type

string (Semantics Label)

softWrap

Define the representation of boolean acceptable.

Used to identify parser. Every parser can permit only one type

softWrap

softWrap Type

boolean (Boolean)

softWrap Default Value

The default value is:

true

softWrap Examples

true
false

textScaleFactor

Define the representation of double acceptable.

Used to identify parser. Every parser can permit only one type

textScaleFactor

textScaleFactor Type

merged type (Double)

one (and only one) of

textScaleFactor Constraints

maximum: the value of this number must smaller than or equal to: 1

minimum: the value of this number must greater than or equal to: 0

textScaleFactor Default Value

The default value is:

1

textWidthBasis

Created by Windol [email protected] at 15/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

textWidthBasis

textWidthBasis Type

any of the folllowing: array or boolean or integer or number or object or string (Dynamic)

textWidthBasis Default Value

The default value is:

"unbounded"