Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.74 KB

File metadata and controls

48 lines (32 loc) · 1.74 KB

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

SearchEntrypoint interface

Google search entry point.

Signature:

export interface SearchEntrypoint 

Properties

Property Type Description
renderedContent string HTML/CSS snippet that must be embedded in a web page. The snippet is designed to avoid undesired interaction with the rest of the page's CSS.To ensure proper rendering and prevent CSS conflicts, it is recommended to encapsulate this renderedContent within a shadow DOM when embedding it into a webpage. See MDN: Using shadow DOM.

SearchEntrypoint.renderedContent

HTML/CSS snippet that must be embedded in a web page. The snippet is designed to avoid undesired interaction with the rest of the page's CSS.

To ensure proper rendering and prevent CSS conflicts, it is recommended to encapsulate this renderedContent within a shadow DOM when embedding it into a webpage. See MDN: Using shadow DOM.

Signature:

renderedContent?: string;

Example

const container = document.createElement('div');
document.body.appendChild(container);
container.attachShadow({ mode: 'open' }).innerHTML = renderedContent;