Text Element
Description
The Text element represents a piece of text.
Attribute Description
Attribute | Type | Default Value | Required | Description | Minimum Version |
---|---|---|---|---|---|
decode | Boolean | FALSE | No | Specifies whether the text should be decoded | |
selectable | Boolean | FALSE | No | Specifies 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>