All Questions
Tagged with mdc javascript
5 questions
1
vote
0
answers
315
views
How to have pre-selected option while construction of dropdown in mdc
i wanted to select a particular option while construction of dropdown.
Question: i want to select grapes while construction of dropdown. not after construction.
Note: i want to construct it at once(...
7
votes
2
answers
2k
views
Material design for the web. How to set the position for a mdc.menu?
Material design for the web. How to set the position for a mdc.menu?
I will move the mdc-menu from the left, top corner to the right corner. 70px from top and 25px from the right.
Please take a look ...
0
votes
2
answers
838
views
Show Is Not A Function At HTMLButtonElement Error
I am following this codepen which works perfectly. I took the code from it and put it in my local HTML file and added the JS. However when I run it locally it doesn't work. The console prints out the ...
0
votes
1
answer
1k
views
How to add Material Design Tabs on a web app using unpkg as a storage for MDC CSS file and s file
I tried below html code for making a tab set:
<section id="dynamic-demo-toolbar">
<nav id="dynamic-tab-bar" class="mdc-tab-bar" role="tablist">
<a role="tab" aria-controls="panel-...
4
votes
2
answers
1k
views
MDC Tabs Javascript in a re-useable way
I have implemented the demo js of MDC tabs found here and it's working fine. How would I go about converting this to be more re-usable so I could just use a generic selector like ".js-tabs", link them ...