Flutter教程

ion-refresher-content

概要(CONTENTS)

Ionic4项目中我们可以使用Ionic4下拉分页组件ion-refresher-content对项目进行布局。

ion-refresher-content官方文档地址:https://ionicframework.com/docs/api/refresher-content

The refresher content contains the text, icon and spinner to display during a pull-to-refresh. Ionic provides the pulling icon and refreshing spinner based on the platform. However, the default icon, spinner, and text can be customized based on the state of the refresher.

ion-refresher-content 属性(Properties)

pullingIcon

Description

A static icon to display when you begin to pull down

Attribute pulling-icon
Type null | string | undefined

pullingText

Description

The text you want to display when you begin to pull down. pullingText can accept either plaintext or HTML as a string. To display characters normally reserved for HTML, they must be escaped. For example would become <Ionic>

For more information: Security Documentation

Attribute pulling-text
Type string | undefined

refreshingSpinner

Description

An animated SVG spinner that shows when refreshing begins

Attribute refreshing-spinner
Type "bubbles" | "circles" | "crescent" | "dots" | "lines" | "lines-small" | null | undefined

refreshingText

Description

The text you want to display when performing a refresh. refreshingText can accept either plaintext or HTML as a string. To display characters normally reserved for HTML, they must be escaped. For example would become <Ionic>

For more information: Security Documentation

Attribute refreshing-text
Type string | undefined