Skip to main content

Text

Container properties

All component configurations support Container properties at the first level.

Component properties

NameTypeDefaultWhether Variable Patternis supported Description
classNamestring✔️className of the component
styleobjectstyle of the component
contentnumber | stringText content
fontSizenumber | stringText size, css property
fontWeightnumber | stringText weight, CSS attribute
colorstringText color, css attribute
formatter'localeDateTime' | 'localeDate' | 'localTime' | 'age'The text displays the format
prefixstringThe prefix of the text, if there is a link, will not be included in the link
suffixstringThe text suffix, if there is a link, will not be included in the link
href[ConditionalPropertyPropType] (api-for-props/conditional-property-prop-type) (string)✔️The link address of the text
hrefIsSiteBasedboolfalseIf the value is 'false' and the link is under PBC, the href will automatically splice the 'token' of PBC as 'basename', and the mobile app will automatically splice the prefix
suppressBasePathboolfalseWhether or not to directly link through the base path
suppressInheritIncludeDeletedboolfalseWhether to prohibit the automatic inheritance of the 'include_deleted' attribute of the current page, which is usually in the search params of the current page URL
targetstringhtml link's target attribute

JS API

The interface obtained through formApi.getFieldApi() is as follows:

NameTypeDescription
nodeHTML ElementThe root DOM element of the component