Calendar adding in the app

45 views
Skip to first unread message

DogPlanner GSS

unread,
Nov 28, 2025, 5:21:24 AM (6 days ago) Nov 28
to DroidScript
Hello,

We want to add the calendar in our new app for pets which we are developing now using DroidScript app. 

Could anyone help us with this issue? 

We didn't find the info about this.

Thank you very much in advance.


Fatih Elitas

unread,
Nov 29, 2025, 1:52:30 AM (5 days ago) Nov 29
to DroidScript
Hello.
I do this using the uiextras plugin

app.LoadPlugin( "UIExtras" );

function OnStart()
{
 lay = app.CreateLayout( "Linear", "VCenter,FillXY" );
 
 btn = app.CreateButton( "Pick Date", 0.3, 0.1 );
 btn.SetOnTouch( btn_OnTouch );
 lay.AddChild( btn );

 app.AddLayout( lay );

 uix = app.CreateUIExtras();
}

function btn_OnTouch()
{
 picker = uix.CreateDatePickerDialog( "Pick a Date" );
 picker.SetOnOk( picker_OnOk );
 picker.Show();
}

function picker_OnOk( year, month, day )
{
 var date = new Date();
 date.setFullYear( year, month, day);

 app.ShowPopup( date.toDateString() );
}

28 Kasım 2025 Cuma tarihinde saat 13:21:24 UTC+3 itibarıyla dogplan...@gmail.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages