Skip to content

Callbacks? #5

Description

@pouipouidesign

Me again :)

Did I miss a part of the doc talking about how to invoke callbacks (ie. when someone has selected something in the dropdown)?
I'd like to do stuff in my page depending on which item was clicked but I can't for the life of me figure how to tie in to the instance?

I instanced my input like this:

autoCompleteInput = new Autocomplete('tileFilterText', {
            srcType: "array",
            useNativeInterface: false,
            srcData: acTilesFilters
        });

I then tried something like:

$('.aLim').on('click',function() {
    alert('');
});

Then something like:

$(window).on(autoCompleteInput.selectValue,function() {
   alert('');
});

but neither worked?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions