{"id":4132,"date":"2023-10-12T13:34:33","date_gmt":"2023-10-12T07:49:33","guid":{"rendered":"https:\/\/dearflip.com\/docs\/dearflip-jquery\/examples\/adding-search\/"},"modified":"2023-10-12T13:36:41","modified_gmt":"2023-10-12T07:51:41","password":"","slug":"adding-search","status":"publish","type":"docs","link":"https:\/\/js.dearflip.com\/docs\/adding-search\/","title":{"rendered":"Adding Search"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Adding Search:<\/h2>\n\n\n\n<p>Search is introduced in <strong>version 2.1<\/strong>. If you want to add search to the flipbooks, you need to :<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add id to the flipbook element. Example <code>id=\"my_flipbook\"<\/code><\/li>\n\n\n\n<li>Register a related option variable based on the id.  Example <code>var option_my_flipbook = {};<\/code><\/li>\n<\/ol>\n\n\n\n<p><strong>Code:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"_df_button\" \n     <strong>id=\"my_flipbook\"<\/strong>\n     source=\"http:\/\/www.yoursite.com\/books\/intro.pdf\"&gt; Intro Book&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script>\nvar <strong>option_my_flipbook<\/strong> = {showSearchControl:true};\n&lt;\/script><\/code><\/pre>\n\n\n<a class=\"_df_hidden \"  href=\"#\"  data-title=\"\" id=\"df_rand758957350\" data-df-option=\"df_option_rand758957350\"  hidden>Open Book<\/a><script class=\"df-shortcode-script\" nowprocket type=\"application\/javascript\">window.df_option_rand758957350 = {\"source\":\"\",\"id\":\"rand758957350\"}; if(window.DFLIP && window.DFLIP.parseBooks){window.DFLIP.parseBooks();}<\/script>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<div class=\"_df_book\" id=\"my_flipbook\" source=\"https:\/\/js.dearflip.com\/wp-content\/uploads\/2019\/07\/dearpdf-manual.pdf\">Flipbook with Custom option<\/div>\n<script>var option_my_flipbook = {showSearchControl:true};\n<\/script>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-default\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Adding Search: Search is introduced in version 2.1. If you want to add search to the flipbooks, you need to : Code: Output: Flipbook with Custom option<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"doc_category":[118],"doc_tag":[],"class_list":["post-4132","docs","type-docs","status-publish","hentry","doc_category-examples"],"aioseo_notices":[],"year_month":"2026-05","word_count":87,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Deepak Ghimire","author_nicename":"deip-ghimire","author_url":"https:\/\/js.dearflip.com\/author\/deip-ghimire\/"},"doc_category_info":[{"term_name":"Examples","term_url":"https:\/\/js.dearflip.com\/docs-category\/examples\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/docs\/4132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/comments?post=4132"}],"version-history":[{"count":2,"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/docs\/4132\/revisions"}],"predecessor-version":[{"id":4136,"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/docs\/4132\/revisions\/4136"}],"wp:attachment":[{"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/media?parent=4132"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/doc_category?post=4132"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/js.dearflip.com\/wp-json\/wp\/v2\/doc_tag?post=4132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}