Skip to content

Setting Classes of Parent Components #2289

Discussion options

You must be logged in to vote

Autocomplete uses the Input component, but don't initialiaze it, because Input is a separate component, so it requires also initialization. Unless autocomplete wrapper element, on which you initialiaze Autocomplete component, has a data-te-input-wrapper-init attribute it will automatically initaliaze it when you call new te. Autocomplete, but in another case you'll have to initialiaze it yourself as I described in the previous message. YourInputElement will be the same element as this for Autocomplete initialization. We've added this note about Input classes in API documentation because users are also able to use class customization with data attributes. These data attributes should be ad…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SergejGleithmann
Comment options

@iprzybysz
Comment options

Answer selected by SergejGleithmann
@SergejGleithmann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants