Skip to content

Could we have callback after rendering? #47

@YozhEzhi

Description

@YozhEzhi

It would be great if we could to add custom elements at the end of generated items.
For example:

<div class="autocomplete-suggestions suggestions">
  <div class="autocomplete-suggestion" data-val="iphone 7">iphone 7</div>
  <div class="autocomplete-suggestion" data-val="iphone 6">iphone 6</div>
  <div class="autocomplete-suggestion" data-val="iphone 5s">iphone 5s</div>
  <div class="autocomplete-suggestion" data-val="iphone se">iphone se</div>
  <div class="autocomplete-suggestion" data-val="iphone">iphone</div>
  <div class="my-custom-permanent-element">Press Enter to search</div>
</div>

I want to use my-custom-permanent-element - as help text.
So I think we need ability to add custom non-interactive items or we need a callback, that will be fired after list items rendering.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions