diff options
Diffstat (limited to 'files/pt-pt/web/api/window/sidebar/index.html')
-rw-r--r-- | files/pt-pt/web/api/window/sidebar/index.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/files/pt-pt/web/api/window/sidebar/index.html b/files/pt-pt/web/api/window/sidebar/index.html new file mode 100644 index 0000000000..281555281d --- /dev/null +++ b/files/pt-pt/web/api/window/sidebar/index.html @@ -0,0 +1,61 @@ +--- +title: Window.sidebar +slug: Web/API/Window/sidebar +tags: + - DOM + - Janela + - Não Padrão + - Propriedade + - Referencia +translation_of: Web/API/Window/sidebar +original_slug: Web/API/Window/barra_lateral +--- +<div>{{APIRef}} {{Non-standard_header}}</div> + +<p>Devolve um objeto da barra lateral, que contém vários métodos para registar extras com o navegador.</p> + +<h2 id="Notes" name="Notes">Notas</h2> + +<p>O objeto da barra lateral devolvido tem os seguintes métodos:</p> + +<table class="fullwidth-table"> + <tbody> + <tr> + <th>Método</th> + <th>Descrição (SeaMonkey)</th> + <th>Descrição (Firefox)</th> + </tr> + <tr> + <td><code>addPanel(<var>title</var>, <var>contentURL</var>, "")</code></td> + <td>Adiciona um painel de barra lateral.</td> + <td rowspan="2">Obsoleto desde o Firefox 23 (apresentado apenas no SeaMonkey).<br> + Em vez disso, os utilizadores finais podem utilizar a opção "carregar este marcador na barra lateral". Consulte também <a href="/pt-PT/docs/Mozilla/Criacao_barra_lateral_Firefox">Criação de uma barra lateral do Firefox.</a></td> + </tr> + <tr> + <td><code>addPersistentPanel(<var>title</var>, <var>contentURL</var>, "")</code></td> + <td>Adiciona um painel de barra lateral, que consegue funcionar em segundo plano.</td> + </tr> + <tr> + <td><code>AddSearchProvider(<em>descriptionURL)</em></code></td> + <td colspan="2">Installs a search provider (OpenSearch). <a href="/en-US/docs/Web/API/Window/sidebar/Adding_search_engines_from_Web_pages#Installing_OpenSearch_plugins" title="Adding_search_engines_from_web_pages">Adding OpenSearch search engines </a>contains more details. Added in Firefox 2.</td> + </tr> + <tr> + <td><code>addSearchEngine(<var>engineURL</var>, <var>iconURL</var>, <var>suggestedTitle</var>, <var>suggestedCategory</var>)</code> {{Obsolete_inline(44)}}</td> + <td colspan="2"> + <p>Installs a search engine (Sherlock). <a href="/en-US/docs/Web/API/Window/sidebar/Adding_search_engines_from_Web_pages#Installing_Sherlock_plugins" title="Adding_search_engines_from_web_pages">Adding Sherlock search engines </a>contains more details.</p> + + <div class="note"> + <p><strong>Note</strong>: This was made obsolete in Firefox 44, and has been removed completely in Firefox 59. You should use <code>AddSearchProvider</code> instead.</p> + </div> + </td> + </tr> + <tr> + <td><code>IsSearchProviderInstalled(<em>descriptionURL)</em></code></td> + <td colspan="2">Indicates if a specific search provider (OpenSearch) is installed.</td> + </tr> + </tbody> +</table> + +<h2 id="Specification" name="Specification">Especificação</h2> + +<p>Específico da Mozilla. Não faz parte de qualquer padrão.</p> |