Topic: [Pro User] Is there better documentation hidden somewhere?

hbthegreat pro asked 6 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 6 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 6 years ago


So is there currently no way to bind [(ngModel)] to the datepicker without a timeout hack?

Damian Gemza staff answered 6 years ago


Hello hbthegreat, We have only one documentation - the online. From there you have to read about implementing our components. We'll take a deep look on our documentation, and if something isn't clear, we'll improve it. Best Regards, Damian

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags