@testjg/nativescript-datetimeselector
添加插件描述
npm i --save @testjg/nativescript-datetimeselector

@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 版