acburst on gh-pages
Patreon may (compare)
<div class="row">
<div class="input-field col s12 m6">
<select asp-for="CityId" asp-items="@ViewBag.CitiesSelectList">
<option value="" disabled selected>Select City...</option>
</select>
<span asp-validation-for="CityId" class="text-danger"></span>
</div>
</div>
this is my code
Hi there! I was using materialize autocomplete form until 2 days ago and it suddenly stopped working
<div class="input-field col s6">
<i class="material-icons prefix">find_in_page</i>
<input type="text" id="projSel" class="autocomplete" required>
<label for="projSel">Select Project</label>
</div>
this is my autocomplete element
google.script.run.withSuccessHandler(pickProj).projPikcer()
});
function pickProj(options)
{
var projPicker = document.getElementById('projSel');
var instances = M.Autocomplete.init(projPicker, options);
}
Confirmed that projPikcer() is returning a list of options but pickProj() callback isn't setting up the autocomplete list.
@karthicksndr I don't know whether you found a solution, but changing 'null' to 'false' in the autocomplete object did the trick.
Courtesy of a commenter on YouTube (not from me):
The autocomplete list object was being populated correctly serverside (logs showed {bob=null, fred=null, jane=null} etc. but clientside, I was suddenly retrieving an empty object {}. After a LOT of headscratching, it seems something has changed with the way "null" is handled. Previously this worked:
options[v[0]] = null;
As of today (well, for me anyway, who knows how long it's been happening given server upgrades etc.) I need to use:
options[v[0]] = false;
Hope this helps!
<select>
element with a few AngularJS directives including ng-disabled
and ng-change
. When I initialize the <select> using const elems = document.querySelectorAll('select');
const instances = M.FormSelect.init(elems, {});
<select>
is permanently set to whatever the value of ng-disabled
was. However, ng-change
continues to work.
Hello guys! I'm developing a landing page for a personal project and I can't do a carousel/slider
I copy/paste this example https://materializecss.com/carousel.html#special but don't work for me
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Comunidad.es — La plataforma de tu comunidad</title>
<link rel="stylesheet" href="materialize/css/materialize.min.css">
</head>
<body>
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo">Logo</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="#">Visión</a></li>
<li><a href="#">Equipo</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Contacto</a></li>
</ul>
</div>
</nav>
<div class="carousel carousel-slider center">
<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>First Panel</h2>
<p class="white-text">This is your first panel</p>
</div>
<div class="carousel-item amber white-text" href="#two!">
<h2>Second Panel</h2>
<p class="white-text">This is your second panel</p>
</div>
<div class="carousel-item green white-text" href="#three!">
<h2>Third Panel</h2>
<p class="white-text">This is your third panel</p>
</div>
<div class="carousel-item blue white-text" href="#four!">
<h2>Fourth Panel</h2>
<p class="white-text">This is your fourth panel</p>
</div>
</div>
<script>
var instance = M.Carousel.init({
fullWidth: true,
indicators: true
});
</script>
<script src="materialize/js/materialize.min.js"></script>
</body>
</html>