mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] playground: slightly improve default text
This commit is contained in:
@@ -173,8 +173,10 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.right-pane .note {
|
.right-pane .note {
|
||||||
font-size: 20px;
|
font-size: 18px;
|
||||||
|
text-align: left;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
padding: 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-pane .error {
|
.right-pane .error {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ class Greeter extends Component {
|
|||||||
state = useState({ word: 'Hello' });
|
state = useState({ word: 'Hello' });
|
||||||
|
|
||||||
toggle() {
|
toggle() {
|
||||||
this.state.word = this.state.word === 'Hi' ? 'Hello' : 'Hi'
|
this.state.word = this.state.word === 'Hi' ? 'Hello' : 'Hi';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,11 @@
|
|||||||
<div>🦉 Odoo Web Library 🦉</div>
|
<div>🦉 Odoo Web Library 🦉</div>
|
||||||
<div>v<t t-esc="version"/></div>
|
<div>v<t t-esc="version"/></div>
|
||||||
<div class="url"><a href="https://github.com/odoo/owl">https://github.com/odoo/owl</a></div>
|
<div class="url"><a href="https://github.com/odoo/owl">https://github.com/odoo/owl</a></div>
|
||||||
<div class="note">Note: these examples require a recent browser to work without a transpilation step. </div>
|
<div class="note">
|
||||||
|
<p>Note: these examples are using recent features of Javascript, and require a recent browser to work without a transpilation step!
|
||||||
|
For example, it makes use of class fields and class static fields. These examples should work in a recent Chrome version.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div t-if="state.error" class="error">
|
<div t-if="state.error" class="error">
|
||||||
<h3>Error</h3>
|
<h3>Error</h3>
|
||||||
|
|||||||
Reference in New Issue
Block a user