Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 21 02:33
    dependabot[bot] labeled #113
  • Sep 21 02:33
    dependabot[bot] opened #113
  • Sep 21 02:33

    dependabot[bot] on npm_and_yarn

    Bump tmpl from 1.0.4 to 1.0.5 … (compare)

  • Aug 10 23:34
    dependabot[bot] labeled #112
  • Aug 10 23:34
    dependabot[bot] opened #112
  • Aug 10 23:34

    dependabot[bot] on npm_and_yarn

    Bump path-parse from 1.0.5 to 1… (compare)

  • Aug 04 06:20
    dependabot[bot] labeled #111
  • Aug 04 06:20
    dependabot[bot] opened #111
  • Aug 04 06:20

    dependabot[bot] on npm_and_yarn

    Bump tar from 2.2.1 to 2.2.2 B… (compare)

  • Jun 23 08:10
    Haroenv closed #86
  • Jun 23 08:10
    Haroenv commented #86
  • May 14 18:13
    Haroenv commented #108
  • May 13 02:07
    bacloud14 closed #108
  • May 13 02:07
    bacloud14 commented #108
  • May 13 01:45
    bacloud14 commented #108
  • May 13 01:41
    bacloud14 commented #108
  • May 12 01:09
    coveralls commented #110
  • May 12 01:03
    dependabot[bot] labeled #110
  • May 12 01:03
    dependabot[bot] opened #110
  • May 12 01:03

    dependabot[bot] on npm_and_yarn

    Bump merge from 1.2.0 to 1.2.1 … (compare)

Haroen Viaene
@Haroenv
Hello World!
I'm almost always available, so feel free to ask whatever you want
Haroen Viaene
@Haroenv
Right now the only unresolved issue is highlighting of matches, #4 and #21. However it seems like my approach won't work and something new will have to be made
buddyspence
@buddyspence
hello, i am using holmes in a project of me and everything worked fine, but now i am stuck. Is there a possibillity to reset the filter programmatically, maybe with a click on a button. The solution can be regular javascript or jquery. I hope you can help me. Matthias
Haroen Viaene
@Haroenv
Do you mean emptying the input field?
If it's in a form you can call whateverTheFont.reset()
You can set the value to "" of the search input, or reset it as well
buddyspence
@buddyspence
thank you for your quick response: i havbe tested this: $("#button-reset").click(function(){
$('#search').reset();
    });
and this too: $("#button-reset").click(function(){
$('#search').val('');
    });
but none of these worked. Am i doing it wrong?
Haroen Viaene
@Haroenv
Can you put up an example on codepen where you see the problem?
buddyspence
@buddyspence
i have never used codepen, i am not very experienced with things like this.
the input is not in a form, the input field never gets submitted i use it just as a filter
Haroen Viaene
@Haroenv
I'll try to give you an example
buddyspence
@buddyspence
oh thank you that would be wonderfull
Haroen Viaene
@Haroenv
(I used vanilla, but you can do the same with jQuery)
@buddyspence
buddyspence
@buddyspence
ok i test it, thank you
Haroen Viaene
@Haroenv
With pleasure
buddyspence
@buddyspence
ok this, sets back the value of the input-field. i think i could achive this with $('#selector').val(''); too. But it dont sets back the holmes filter. My list is still filtered after setting back the input value. Do you understand what i mean?
Haroen Viaene
@Haroenv
You will have to dispatch the input event yourself. I updated my pen to do that!
buddyspence
@buddyspence
nice job, you saved my day, and mayby my job too. I am not so good with javascript and this is the first project wich make much use of it. No i try to edit your code and add it to the project. Many Thanks again
Haroen Viaene
@Haroenv
You're welcome
buddyspence
@buddyspence
ok one last thing, and if your busy feel free to ignore my question. This solution worked for me, but i am intersted if you can do the dispatchEvent thing in jquery too
Haroen Viaene
@Haroenv
You can do it in jQuery as well
But it would not execute Holmes' native event, so personally I'd use what I've written
buddyspence
@buddyspence
ok perfect
Haroen Viaene
@Haroenv
hey @buddyspence in case you still want this, Holmes now has a native .clear() method
doing var h = new holmes(options) and then h.clear() will be what you want
Matthew Price
@mattjhnprc_twitter
has anyone managed to get holmes working with Knockout, thanks?
Haroen Viaene
@Haroenv
I haven't used knockout yet. What are the errors you're getting?
Lucas Bonomi
@LukyVj
@mattjhnprc_twitter
Matthew Price
@mattjhnprc_twitter
@LukyVj no errors search just has no affect. if I point holmes at non knockout content on the page it works as expected
Haroen Viaene
@Haroenv
can you show where you're having trouble in a codepen for example