Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

searchPlaceholder message option don't working #142

Open
enventa opened this issue Nov 9, 2019 · 1 comment
Open

searchPlaceholder message option don't working #142

enventa opened this issue Nov 9, 2019 · 1 comment

Comments

@enventa
Copy link

enventa commented Nov 9, 2019

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!

@brada1703
Copy link

brada1703 commented Dec 27, 2019

Hey @enventa,

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants