Topic: [Pro User] Is there better documentation hidden somewhere?
hbthegreat pro asked 7 years ago
Hi just wondering if there are documentation for any of the components such as Date Picker for angular pro users?Currently the online documentation for many of the features is very lacking and I am constantly having to refer to the code itself in order to find ways to use even the most basic of functionality such as binding a date from a model to the UI.This is not limited to just the Date Picker it is for close to everything I have attempted to use so far.
Damian Gemza staff answered 7 years ago
Hello hbthegreat,
Today we've developed a feature, that allow users to bind ngModel to datepicker without this timeout method, that my friend mentioned about few days ago.
You have to download that feature from git.mdbootstrap.com/mdb/angular . This feature is located only on branch 'dev'.
Then to your's app.component.html you have to add line below:
<mdb-date-picker #datePicker name="mydate" [options]="myDatePickerOptions" [placeholder]="'Selected date'" [(ngModel)]="model"required></mdb-date-picker>
Next to your's app.component.ts you have to add lines below:
import { Component, OnInit, ViewChild, AfterViewInit} from '@angular/core';
@ViewChild("datePicker") datePicker: MDBDatePickerComponent;
ngAfterViewInit(){ // You should use your's own default data. model = '2018-08-08' }
After this changes, everything should works fine.
Best Regards,
Damian
hbthegreat pro answered 7 years ago
Damian Gemza staff answered 7 years ago
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No