Search Posts

Category: angular-material

angularjs material how to override function

I using angularjs 1 with material, when I trying with pagination, by default code like this <md-table-pagination md-limit=”query.limit” md-limit-options=”limitOptions” md-page=”” md-total=”{{desserts.count}}” md-page-select=”options.pageSelect” md-boundary-links=”options.boundaryLinks” md-on-paginate=”logPagination”></md-table-pagination> but my data over 1000000 record, so i try LIMIT, OFFSET record from server side, and I want replace function of material, in inspect element browser i see like this how i can override $ ?? Any help pleases. Source: AngularJS

How to add Sub-item in Angular Material Navigation Menu

Here is my source page: creating-your-own-angular-material-navigation-menu. And here is the script: sections.push({ name: ‘Beers’, type: ‘toggle’, pages: [{ name: ‘IPAs’, type: ‘link’, state: ‘beers.ipas’, icon: ‘fa fa-group’ }, { name: ‘Porters’, state: ‘home.toollist’, type: ‘link’, icon: ‘fa fa-map-marker’ }, { name: ‘Wheat’, state: ‘home.createTool’, type: ‘link’, icon: ‘fa fa-plus’ }] }); I Just want to add a sub-menu item just like in this image. Source: AngularJS

md checkbox hover highlighting issue

I am finding that when I hover over an md-checkbox a light grey highlighting is popping up behind it when I do not want it to. Here is a snippet of my code. Just looking to see if anyone has run into this before. <div class=”weekday-selection”> <div class=”weekday-checkbox”> <md-checkbox md-no-ink ng-model=”weekdays.sunday” ng-change=”updateActive(weekdays.sunday)” ng-true-value =”‘sunday'”></md-checkbox> <md-checkbox md-no-ink ng-model=”weekdays.monday” ng-change=”updateActive(weekdays.monday)” ng-true-value =”‘monday'”></md-checkbox> <md-checkbox md-no-ink ng-model=”weekdays.tuesday” ng-change=”updateActive(weekdays.tuesday)” ng-true-value =”‘tuesday'”></md-checkbox> <md-checkbox md-no-ink ng-model=”weekdays.wednesday” ng-change=”updateActive(weekdays.wednesday)” ng-true-value =”‘wednesday'”></md-checkbox> <md-checkbox md-no-ink ng-model=”weekdays.thursday” […]

Angular Mat Table – display multiple section under one row

I would like to display data in above format using Mat Table. I tried below <div class=”example-container mat-elevation-z8″> <table mat-table [dataSource]=”dataSource” matSort class=”mat-elevation-z8″> <!– Position Column –> <ng-container matColumnDef=”position”> <th mat-header-cell *matHeaderCellDef mat-sort-header>No. </th> <td mat-cell *matCellDef=”let element”> {{element.position}} </td> </ng-container> <!– Name Column –> <ng-container matColumnDef=”name”> <th mat-header-cell *matHeaderCellDef mat-sort-header> Name </th> <td mat-cell *matCellDef=”let element”> {{}} </td> </ng-container> <tr mat-header-row *matHeaderRowDef=”displayedColumns”></tr> <tr mat-row *matRowDef=”let row; columns: displayedColumns;”></tr> </table> Thanks. Source: AngularJS

title is shown below input fields

title is display below input fields css is fine but still facing the issue i just copy the sample code from <div flex layout=”row” layout-align=”center center”> <div flex-sm=”100″ flex-gt-sm=”90″ flex-gt-md=”70″ flex-gt-lg=”50″ class=”md-whiteframe-z2″> <md-content class=”md-padding”> <div flex-sm=”100″ flex-gt-sm=”80″ layout-sm=”column”> <form name=”contactForm” data-ng-submit=”sendMail()”> <md-input-container> <label>Name:</label> <input ng-model=”contactName” required> </md-input-container> <md-input-container flex> <label>Email:</label> <input type=”email” ng-model=”contactEmail” required> </md-input-container> <md-input-container> <label>Message:</label> <textarea ng-model=”contactMsg” columns=”1″ md-maxlength=”150″ required></textarea> </md-input-container> <button type=”submit”>Send</button> </form> </div> </md-content> </div> </div> Source: AngularJS

AngularJs Material

Is there any way to remove the interaction between angular material components (like checkbox, select and datepicker) and the enter keypress event? <md-checkbox> check </md-checkbox> Here is a Plunk for a real world example. Any help will be appreciated. Thanks. Source: AngularJS

How to sort column with dates on md-data-table using md-order-by attribute

I’m trying to allow ordering a column of a md-data-table in AngularJS that contains dates. These dates are strings with the format DD / MM / YYYY. I can not get them ordered correctly. I have tried to call a function that returns the timestamp of the date from the md-order-by attribute, but it does not even call the function. The current code is the following and the column that I am trying to order […]

AngularJS Material Datepicker change format

I am using the AngularJS Datepicker for a project. When posting a date I succeed on getting data back but the problem is that I get the date in the format of 2018-05-23T06:00:00.000Z. Is there a way to get it to show just 2018-05-23? This is what I have as my current datepicker // Date picker $scope.myDate = new Date(); $scope.minDate = new Date( $scope.myDate.getFullYear(), $scope.myDate.getMonth() – 2, $scope.myDate.getDate()); $scope.maxDate = new Date( $scope.myDate.getFullYear(), $scope.myDate.getMonth() […]

Next Page »