Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizGeneral Tech Bugs & Fixes 2 years ago
Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
you need to use plugin called ionic2-calender then use do this steps
1) add ionic2-calender module to app.module.ts
import { NgCalendarModule } from 'ionic2-calendar'; @NgModule({ declarations: [AppComponent], entryComponents: [], imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule, NgCalendarModule], }) export class AppModule {}
2) declare it in the page module .ts file as well same as above.
3) then add .html
mode" [currentDate]="calendar.currentDate" (onCurrentDateChanged)="onCurrentDateChanged($event)" (onEventSelected)="onEventSelected($event)" (onTitleChanged)="onViewTitleChanged($event)" (onTimeSelected)="onTimeSelected($event)" step="30">
4)then use event as per your requiremnt in page.ts file.
export class HomePage { public eventSource = []; public selectedDate = new Date(); isToday: boolean = true; markDisabled = (date: Date) => { var d = new Date(); // d.setDate(d.getDate() - 1); return date < d; }; calendar = { mode: 'month', currentDate: this.selectedDate } constructor(public navCtrl: NavController) { } changeMode(mode) { this.calendar.mode = mode; } loadEvents() { this.eventSource = this.createRandomEvents(); } onCurrentDateChanged(ev) { console.log(ev); var today = new Date(); today.setHours(0, 0, 0, 0); ev.setHours(0, 0, 0, 0); this.isToday = today.getTime() === ev.getTime(); } onViewTitleChanged(Title) { this.viewTitle = Title; } onTimeSelected(event) { console.log(event); var date = new Date().getTime(); console.log(date); var task = "work fast"; } onEventSelected(event) { console.log(event); }
this is working example I have implimented in my ionic4 project.if you don't undestand this answer then please check videos tutorial of ionic2-calender
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.
manpreet
Best Answer
2 years ago
I'm trying to make an app for class attendance. So, I need to show a calendar in which student's attendance can be shown whether they were present or absent on that specific day. Is there any workaround to directly show a calendar and perform functions on it.
Screenshot of how its supposed to look: https://imgur.com/a/MfZXy0q