material-design

How to set Material design list to behave like getmdl-select dropdown (respond to keyboard arrows and tab)

吃可爱长大的小学妹 提交于 2019-12-25 12:12:06
问题 The standard material design select list (dropdown) support accessibility. I can get to the dropdown with a TAB (keyboard), navigate the list items with the arrows (keyboard) and by pressing again on tab it will navigate to other component on the screen. Means, the behavior is: TAB navigate between the components on the screen and arrows navigate between the items in the list. Example: <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label getmdl-select getmdl-select__fix

How to clear all the md-input fields at once inside a md-form using an external button in Angular 2/2+/4

孤人 提交于 2019-12-25 11:53:56
问题 I want to clear all the fields inside a md-form at once using an external clear button like you do in normal HTML Forms. The problem with md-form is that it contains md-input fields instead of regular input fields. So the simple reset function won't trigger that. I've set the type of each field to 'search' that gives some kind of control but it's like u have to manually click and remove each value of the filed. I want to erase them all at once. Is there a proper way to to this? Thanks in

Get a value from mdInput

只愿长相守 提交于 2019-12-25 09:16:47
问题 So I have a md-input and some button. <md-input-container > <input mdInput #myInput name="myInput" type="password" placeholder="Yeah"> </md-input-container> <button md-raised-button (click)="authenticate(myInput)">Start</button> This button sends the whole md-input . I fill in my input and that's what I'm getting when I click the button <input _ngcontent-uqn-44="" mdinput="" name="myInput" placeholder="Yeah" type="password" ng-reflect-placeholder="Yeah" ng-reflect-type="password" class="mat

android toolbar is hidden when Tabs are implemented

独自空忆成欢 提交于 2019-12-25 04:44:28
问题 I've created an app interface material design toolbar,drawer,fab everything works. Then I wanted to add 2 tabs ,so I used https://github.com/neokree/MaterialTabs library.Now the fragments and swipe action works .But the toolbar is now disappeared and tabHost is in place of it. In Android studio design view(not avd) it shows but when it came to real device(kitkat) it is not. I don't know what's wrong I've implemented the same way as in the test in lib module. <android.support.v4.widget

Material design and jQuery, scroll not working

六月ゝ 毕业季﹏ 提交于 2019-12-25 02:54:07
问题 I am unable to make use of the .scroll method of jQuery while including Google's Material design. I have used Material Design Lite to make navigation bar of site. If I exclude/remove material.min.js , then scroll method on window works perfectly. My simple jQuery code is this: jQuery(window).scroll(function () { console.log("scrolled"); }); Here is the JSFiddle http://jsfiddle.net/wwjoxtvp/2/ And here is codepen:http://codepen.io/MustagheesButt/full/PqBYop/ How can I get jQuery working

ng-repeat conflics with jQuery function call

烈酒焚心 提交于 2019-12-25 02:11:48
问题 I combined AngularJS and MaterializeCSS and use ng-repeat to render images. MaterializeCSS includes the jQuery-based materiabox function to execute an animation to open a modal for each element with the materialbox class. The modal can't be opened by clicking. If I display a single image without ng-repeat it works fine. Here is my code: HTML: <div class="container" ng-controller="MainCtrl"> <span class="col m6 l4"> <li ng-repeat="url in imageUrls"> <img class="materialboxed" ng-src="{{ url }}

How to get such kind of dialog? [closed]

▼魔方 西西 提交于 2019-12-25 01:48:26
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I want to have kind of pop shown in the given images. What should use ? Pop window, dialog or alert dialog. i have tried all of these, but not able to match the exact UI. 回答1: You can use Popup menu for this purpose. Add this code in your activity.java : fab.setOnClickListener(new

Rails materialize-sass form with autocomplete and cocoon gem nested resource

不想你离开。 提交于 2019-12-25 00:38:05
问题 I am using materialize-sass gem on a form. Using autocomplete feature to get Vendor names. other fields on the form are item names and quantity which are a nested resource. For this I am using cocoon gem For some reason the very first time the page loads, all seems to work fine. But adding more fields does not seem to be working. I tried using drop down select and that does not show the list of items. I replaced it with another autocomplete and the main field does show however the auto

floating label and placeholder overlapping

[亡魂溺海] 提交于 2019-12-25 00:33:57
问题 <div class="form-group form-default form-spacing"> <input class="form-control" placeholder="Name" type="text" required> <span class="form-bar"></span> <label class="float-label">Name</label> </div> here is css, .form-material { .form-group { position: relative; &.form-static-label .form-control { ~.float-label { top: -14px; } } } .form-control { &:focus { border-color: transparent; outline: none; box-shadow: none; } &:focus, &:valid { ~.float-label { top: -14px; } } } if i focus on text field

Stop looping in Carousel materializecss

谁说胖子不能爱 提交于 2019-12-25 00:13:03
问题 I have a material CSS carousel which I want to stop looping after it reaches the last item, instead of returning to the first item it should display a message. similarly, when I hit back it should display a message instead of going to the last item. <div class="carousel carousel-slider center" data-indicators="true"> <div class="carousel-fixed-item center"> <a class="btn waves-effect white grey-text darken-text-2">button</a> </div> <div class="carousel-item red white-text" href="#one!"> <h2