About the Search module "Behaviours"

47 views
Skip to first unread message

Jiun

unread,
May 3, 2015, 6:39:22 PM5/3/15
to seman...@googlegroups.com
Im having some trouble understanding how to use the search module,
the following call works (on the documentation page) when i run it in my console:

$('.ui.search').first().search('hide results');

this worked like once, now i cant get it to work:

$('.ui.search').first().search('display message', 'want' ,'text');

But others are not working, they seem to return some html, but not do what i expected, which is to
render something to the search box/results suggestions:

$('.ui.search').first().search('show results');   // returning html


$('.ui.search').first().search('add results', b);

Im trying to Use the search box without using a remote REST api,  but with a local object that i intend to modify on
the fly depending on the content of the searchbox,  how would i interact with the searchbox showing results and so
on?
$('.ui.search').first().search('search remote', 'qwerty');



Jack Lukic

unread,
May 4, 2015, 1:46:06 PM5/4/15
to Jiun, seman...@googlegroups.com
When asking about code be sure to provide specific test cases that don't behave as expected. Be sure to remove as many unessential details as possible. Fork the JSfiddle link in the readme to get started.

--
You received this message because you are subscribed to the Google Groups "Semantic UI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semantic-ui...@googlegroups.com.
To post to this group, send email to seman...@googlegroups.com.
Visit this group at http://groups.google.com/group/semantic-ui.
For more options, visit https://groups.google.com/d/optout.

jiun bookworm

unread,
May 4, 2015, 3:13:29 PM5/4/15
to Jack Lukic, seman...@googlegroups.com
Sorry for the noise,
it works,  just not the way i thought it was,  the confusion is mine,
seems that  the search   displays when the element is in focus,
(this is what i  did not know).

Reply all
Reply to author
Forward
0 new messages