开源软件名称(OpenSource Name):CreativeIT/getmdl-select开源软件地址(OpenSource Url):https://github.com/CreativeIT/getmdl-select开源编程语言(OpenSource Language):JavaScript 91.6%开源软件介绍(OpenSource Introduction):getmdl-selectMaterial Design Lite selectfield component for material-design-lite Live exampleCheck out the DEMO InstallThere are three ways to install getmdl-select:
Basic useTo use any MDL component, you must include the minified CSS and JavaScript files using standard relative-path references in the <!-- getmdl -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="your_path_to/material-design-lite/material.min.css">
<script defer src="your_path_to/material-design-lite/material.min.js"></script>
<!--getmdl-select-->
<link rel="stylesheet" href="path_to/getmdl-select/getmdl-select.min.css">
<script defer src="path_to/getmdl-select/getmdl-select.min.js"></script> ExampleSimple select field. To see other examples visit this page. <div class="mdl-textfield mdl-js-textfield getmdl-select">
<input class="mdl-textfield__input" value="" id="country" readonly/>
<input value="" type="hidden" name="country"/>
<label class="mdl-textfield__label" for="country">Country</label>
<ul class="mdl-menu mdl-menu--bottom-left mdl-js-menu" for="country">
<li class="mdl-menu__item" data-val="BLR">Belarus</li>
<li class="mdl-menu__item" data-val="BRA">Brazil</li>
<li class="mdl-menu__item" data-val="FRA">France</li>
<li class="mdl-menu__item" data-val="DEU">Germany</li>
<li class="mdl-menu__item" data-val="RUS">Russia</li>
</ul>
</div> ImportantIf you want to use more than one getmdl-select item use different ids for inputs and don't forget to change Configuration optionsDynamically usageFor dynamically usage, you must add data-valEvery Pre-selected itemTo set pre-selected value add WidthInitial Select takes the default width (300px). You can change it by overriding the CSS property HeightOptions list automatically adapt to the maximum height by content. If you want to use small height (300px) and see scroll bar, add class LICENSESee the LICENSE file(MIT). Hire usWe are ready to bring value to your business. Visit our site creativeit.io or drop us a line hello@creativeit.io. We will be happy to help you! Support the project
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论