You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
I know that the searchPlaceholder message option is not documented (see issue #130) but it can be found in the code.
The thing is that it is not working for me. No matter if I define that option or not, nothing is displayed on the search box. Other messages options are, but not the searchPlaceholder one. Any idea why?
I'm using this code:
var selectr = new MolonguiSelectr(authorSelect,
{
messages:
{
noOptions: "No cars available",
noResults: "No cas found",
searchPlaceholder: "Find car by name...",
}
});
Thanks!
The text was updated successfully, but these errors were encountered:
So, there are two types of placeholders. The first one is the normal placeholder for the input that you see before you click it. This is defined by placeholder as seen below. Then, upon clicking it, you notice that you have another search box that you type into. This is defined by searchPlaceholder as seen below.
let exampleSelect = new Selectr(exampleID, {
placeholder: 'Click on me',
messages: {
noResults: "No results",
noOptions: "No options",
searchPlaceholder: "Search options"
}
})
Hope that helps!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I know that the
searchPlaceholder
message option is not documented (see issue #130) but it can be found in the code.The thing is that it is not working for me. No matter if I define that option or not, nothing is displayed on the search box. Other messages options are, but not the
searchPlaceholder
one. Any idea why?I'm using this code:
Thanks!
The text was updated successfully, but these errors were encountered: