ionic refresh_refresh plus使用说明_refreshment翻译(3)

电脑杂谈  发布时间:2017-05-18 03:10:39  来源:网络整理

if (!isDefined($attrs.refreshingIconColor)) {

$attrs.$set('refreshingIconColor', 'none');

}

ionic refresh_refresh plus使用说明_refreshment翻译

if (!isDefined($attrs.refreshingIconColor)) {

$attrs.$set('pullingIconColor', 'none');

}

同时还的添加

pullingIconColor: '@',

disablePullingRotation: '@',

代表获取指令属性内的

那么在我们的html页面中可以这样使用

<ion-refresher pulling-text="下拉刷新..." pulling-icon-color="red" on-refresh="doRefresh()" refreshing-icon="ion-checkmark-circled"refreshing-icon-color="green" refreshing-text="成功更新20信息"></ion-refresher>

注意其中红色部分,即是设置的颜色

至此整个修改过程就完成了


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-47765-3.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...