DateSelector
基于MDUI的简易日期选择器
Install / Use
/learn @markstien/DateSelectorREADME
DateSelector
基于MDUI的一个简易日期选择器。
顾名思义
这只是一个简易“日期”选择器,所以没有关于“时间”的功能(如果你想要,可以帮我添加!)。
截图
如何使用?
1.将项目内的DataSelector文件夹拖入你的项目
2.在项目中引用
const {DateSelector}=require('./DateSelector');
window.addEventListener("load",function () {
const ds=new DateSelector();
ds.open();
ds.getSelectedDate(function (date) {
ds.close();
alert(date);
});
});
文档
DateSelector类暴露了三个方法
1. open()
打开日期选择器对话框
2.close()
关闭日期选择器对话框
3 getSelectedDate(f)
点击√后获取的日期,参数是回调函数。
License
Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.1kCommit, push, and open a PR
