Feature: non-selector searchTag #28

Closed
TrySound opened this Issue Oct 31, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@TrySound

Would be great to pass instead of selector something like Element instance or even search string and then trigger search method. Maybe even call search with search string as an argument if searchTag is not specified. This will reduce dependency on DOM and selectors a bit.

@NeXTs NeXTs closed this in 8f1cd0a Oct 31, 2016

@NeXTs

This comment has been minimized.

Show comment
Hide comment
@NeXTs

NeXTs Oct 31, 2016

Owner

Hi Bogdan,

I like this idea.
Try it this way

var jets = new Jets({
    contentTag: '#jetsContent',
    callSearchManually: true
})

jets.search('search phrase')
Owner

NeXTs commented Oct 31, 2016

Hi Bogdan,

I like this idea.
Try it this way

var jets = new Jets({
    contentTag: '#jetsContent',
    callSearchManually: true
})

jets.search('search phrase')
@TrySound

This comment has been minimized.

Show comment
Hide comment
@TrySound

TrySound Oct 31, 2016

Thanks a lot!

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment