সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ফলাফল কনটেইনার অ্যাডাপ্টার
ইন্টারফেস
ফলাফল ধারক অ্যাডাপ্টার
পদ্ধতি
CreateFacetResultElement
createFacetResultElement(ফলাফল) এলিমেন্ট প্রদান করে
একটি দিক ফলাফলের রেন্ডারিং ওভাররাইড করতে এই পদ্ধতিটি প্রয়োগ করুন।
প্যারামিটার
ফলাফল
অবজেক্ট
প্রতিক্রিয়া থেকে একটি দিক ফলাফল বস্তু
মান শূন্য হতে হবে না.
রিটার্নস
non-null Element এলিমেন্ট একটি ফ্যাসেট ফলাফলের উপর ভিত্তি করে নির্মিত।
সার্চ রেজাল্ট এলিমেন্ট তৈরি করুন
createSearchResultElement(ফলাফল) এলিমেন্ট প্রদান করে
একটি অনুসন্ধান ফলাফলের রেন্ডারিং ওভাররাইড করতে এই পদ্ধতিটি প্রয়োগ করুন৷
প্যারামিটার
ফলাফল
অবজেক্ট
প্রতিক্রিয়া থেকে একটি অনুসন্ধান ফলাফল বস্তু
মান শূন্য হতে হবে না.
রিটার্নস
non-null Element এলিমেন্ট একটি অনুসন্ধান ফলাফলের উপর ভিত্তি করে নির্মিত।
decorateFacetResultElement
decorateFacetResultElement(উপাদান, ফলাফল)
সিএসএস পরিবর্তনের মতো একটি দিক ফলাফল সাজাতে এই পদ্ধতিটি প্রয়োগ করুন।
প্যারামিটার
উপাদান
উপাদান
উপাদান আপনি সাজাইয়া পারেন.
মান শূন্য হতে হবে না.
ফলাফল
অবজেক্ট
প্রতিক্রিয়া থেকে একটি দিক ফলাফল বস্তু
মান শূন্য হতে হবে না.
পেজিনেশন এলিমেন্ট সাজান
সজ্জিত পৃষ্ঠা সংখ্যা উপাদান(উপাদান)
পেজিনেশন বোতামগুলি সাজাতে এই পদ্ধতিটি প্রয়োগ করুন, যেমন CSS পরিবর্তন করুন।
প্যারামিটার
উপাদান
উপাদান
পেজিনেশন বোতামের উপাদান।
মান শূন্য হতে হবে না.
decorateSearchResultElement
decorateSearchResultElement(উপাদান, ফলাফল)
একটি অনুসন্ধান ফলাফল সাজাতে এই পদ্ধতিটি প্রয়োগ করুন, যেমন CSS পরিবর্তন করুন।
প্যারামিটার
উপাদান
উপাদান
উপাদান আপনি সাজাইয়া পারেন.
মান শূন্য হতে হবে না.
ফলাফল
অবজেক্ট
প্রতিক্রিয়া থেকে একটি অনুসন্ধান ফলাফল বস্তু
মান শূন্য হতে হবে না.
interceptSearchRequest
interceptSearchRequest(request) অবজেক্ট রিটার্ন করে
অনুরোধে অতিরিক্ত প্যারাম যোগ করতে এই পদ্ধতিটি প্রয়োগ করুন।
প্যারামিটার
অনুরোধ
অবজেক্ট
মূল অনুরোধ
মান শূন্য হতে হবে না.
রিটার্নস
non-null Object অনুরোধ আপডেট করা অনুরোধ
ইন্টারসেপ্ট সার্চ রেসপন্স
interceptSearch Response(প্রতিক্রিয়া)
রেন্ডারিংয়ের আগে প্রতিক্রিয়া পড়তে এই পদ্ধতিটি প্রয়োগ করুন। প্রতিক্রিয়া অবজেক্ট শুধুমাত্র পঠনযোগ্য। অনুসন্ধান কল ব্যর্থ হলে, প্রতিক্রিয়া ত্রুটি ধারণ করবে.
যদি একটি মুলতুবি থাকা অবস্থায় একটি নতুন অনুসন্ধান অনুরোধ জারি করা হয়, তবে পূর্ববর্তী অনুরোধটি বাতিল করা হয় এবং পদ্ধতিটি বলা হয় না।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Interface: ResultsContainerAdapter\n\nResultsContainerAdapter\n=======================\n\ninterface\n\nThe Adapter of results container\n\nMethods\n-------\n\n### createFacetResultElement\n\ncreateFacetResultElement(result) returns Element\n\nImplement this method to override rendering of a facet result.\n\n| #### Parameter ||\n|--------|--------------------------------------------------------------------|\n| result | Object A facet result object from response Value must not be null. |\n\nReturns\n\n: `non-null Element` element Element built based on a facet result.\n\n### createSearchResultElement\n\ncreateSearchResultElement(result) returns Element\n\nImplement this method to override rendering of a search result.\n\n| #### Parameter ||\n|--------|---------------------------------------------------------------------|\n| result | Object A search result object from response Value must not be null. |\n\nReturns\n\n: `non-null Element` element Element built based on a search result.\n\n### decorateFacetResultElement\n\ndecorateFacetResultElement(element, result)\n\nImplement this method to decorate a facet result, such as change CSS.\n\n| #### Parameter ||\n|---------|--------------------------------------------------------------------|\n| element | Element Element you can decorate on. Value must not be null. |\n| result | Object A facet result object from response Value must not be null. |\n\n### decoratePaginationElement\n\ndecoratePaginationElement(element)\n\nImplement this method to decorate pagination buttons, such as change CSS.\n\n| #### Parameter ||\n|---------|----------------------------------------------------------------|\n| element | Element Element of pagination buttons. Value must not be null. |\n\n### decorateSearchResultElement\n\ndecorateSearchResultElement(element, result)\n\nImplement this method to decorate a search result, such as change CSS.\n\n| #### Parameter ||\n|---------|---------------------------------------------------------------------|\n| element | Element Element you can decorate on. Value must not be null. |\n| result | Object A search result object from response Value must not be null. |\n\n### interceptSearchRequest\n\ninterceptSearchRequest(request) returns Object\n\nImplement this method to add extra params in request.\n\n| #### Parameter ||\n|---------|-----------------------------------------------------|\n| request | Object The original request Value must not be null. |\n\nReturns\n\n: `non-null Object` request The updated request\n\n### interceptSearchResponse\n\ninterceptSearchResponse(response)\n\nImplement this method to read the response prior to rendering. The\nresponse object is read-only. If the search call fails, the response\nwill contain the error.\n\nIf a new search request is issued while one is pending, the previous\nrequest is cancelled and the method is not called.\n\n| #### Parameter ||\n|----------|----------------------------------------------------|\n| response | Object The search response Value must not be null. |"]]