npm i --save @testjg/nativescript-datetimeselector
- 版本:1.0.0
- GitHub: https://github.com/TestJG/mtmobile-plugins
- NPM: https://npmjs.net.cn/package/%40testjg%2Fnativescript-datetimeselector
- 下载次数
- 昨日: 0
- 上周: 0
- 上个月: 0
@testjg/nativescript-datetimeselector
安装
ns plugin add @testjg/nativescript-datetimeselector
用法
// Return Date with hours, minutes and seconds set to zero
const date = await showDateSelector({ okText: 'ok', cancelText: 'cancel' });
// Returns Date
const dateTime = await showDateTimeSelector({ okText: 'ok', cancelText: 'cancel' });
// Returns number of seconds
const time = await showTimeSelector({ okText: 'ok', cancelText: 'cancel' });
许可证
Apache 许可证第 2 版