Topic: Default Value Material Select MDB PRO 5.1.1
itdev pro asked 7 years ago
how do you set the default value of Material Select? I was not able to find the solution in your current documentation.
Damian Gemza staff answered 6 years ago
<mdb-select [(ngModel)]="selectedCharacter" [options]="dateOptionsSelect" placeholder="Choose time period"></mdb-select>
dateOptionsSelect = [ { value: '1', label: 'Today', selected: true }, { value: '2', label: 'Yesterday' }, { value: '3', label: 'Last 7 days' }, { value: '4', label: 'Last 30 days' }, { value: '5', label: 'Last week' }, { value: '6', label: 'Last month' } ]; selectedCharacter='1';
itdev pro answered 6 years ago
Damian Gemza staff answered 7 years ago
dxl pro commented 7 years ago
I asked same question before. I think this is a pretty important behavior and should be documented (for backwards compatibility in future updates).Damian Gemza staff commented 7 years ago
Thanks for report. We will add this to docs in nearest future. Best Regards, DamianFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No