|
@@ -285,9 +285,9 @@
|
|
<h4>Replace the button and message with a custom one</h4>
|
|
<h4>Replace the button and message with a custom one</h4>
|
|
<p>
|
|
<p>
|
|
You can replace both the activation button and the message that is shown
|
|
You can replace both the activation button and the message that is shown
|
|
- when the user uses an unsupported browser with your own elements. This
|
|
|
|
- can be done using the <code>activate</code> and
|
|
|
|
- <code>unsupported</code> slots:
|
|
|
|
|
|
+ when the user uses an unsupported browser or non secure context with
|
|
|
|
+ your own elements. This can be done using the <code>activate</code>,
|
|
|
|
+ <code>unsupported</code> and <code>not-allowed</code> slots:
|
|
</p>
|
|
</p>
|
|
<pre>
|
|
<pre>
|
|
<esp-web-install-button
|
|
<esp-web-install-button
|
|
@@ -297,17 +297,19 @@
|
|
>
|
|
>
|
|
<button slot="activate">Custom install button</button>
|
|
<button slot="activate">Custom install button</button>
|
|
<span slot="unsupported">Ah snap, your browser doesn't work!</span>
|
|
<span slot="unsupported">Ah snap, your browser doesn't work!</span>
|
|
|
|
+ <span slot="not-allowed">Ah snap, you are not allowed to use this on HTTP!</span>
|
|
</esp-web-install-button>
|
|
</esp-web-install-button>
|
|
</pre
|
|
</pre
|
|
>
|
|
>
|
|
<h4>Show or hide the progress bar and log</h4>
|
|
<h4>Show or hide the progress bar and log</h4>
|
|
<p>
|
|
<p>
|
|
By default there is a progress bar showing the state and progress of the
|
|
By default there is a progress bar showing the state and progress of the
|
|
- flashing progress, you can chnage this progress bar to a log view with
|
|
|
|
|
|
+ flashing progress, you can change this progress bar to a log view with
|
|
the <code>show-log</code> attribute.
|
|
the <code>show-log</code> attribute.
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|
|
- You can also hide all progress indicators by adding the `hide-progress`
|
|
|
|
|
|
+ You can also hide all progress indicators by adding the
|
|
|
|
+ <code>hide-progress</code>
|
|
attribute. This will hide both the progress bar and the log view. You
|
|
attribute. This will hide both the progress bar and the log view. You
|
|
can then implement your own progress elements using the
|
|
can then implement your own progress elements using the
|
|
<a href="#state-events">state events</a>.
|
|
<a href="#state-events">state events</a>.
|