HomeDocs
Skip to main content

Text Element

Description

The Text element represents a piece of text.

Attribute Description

AttributeTypeDefault ValueRequiredDescriptionMinimum Version
decodeBooleanFALSENoSpecifies whether the text should be decoded
selectableBooleanFALSENoSpecifies whether the text is selectable

Example

<view class="wrap">
<view class="card-area">
<view class="top-description border-bottom">
<view>Default</view>
<view>Selectable</view>
</view>
<text class="text-box text-block" selectable="true"
>传音小程序(文本支持长按选择)</text
>
</view>
<view class="card-area">
<view class="top-description border-bottom">
<view>Decode</view>
<view>Space</view>
</view>
<text class="text-box text-block" decode="true"
>传音小程序(文本支持编码)</text
>
</view>
</view>
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.