Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] playground: add a new sample #1638

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpp-odoo
Copy link
Contributor

No description provided.

@jpp-odoo jpp-odoo force-pushed the master-add_tictactoe_sample-jpp branch from 7fda21e to 29dc437 Compare September 19, 2024 07:37
<div class="status">
<t t-esc="status"/>
</div>
<div class="board-row">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<div class="board-row" t-foreach="[0,1,2]" t-as="i" t-key="i">
    <Square value="props.squares[3*i]" onSquareClick="() => this.handleClick(3*i)" />
    <Square value="props.squares[3*i+1]" onSquareClick="() => this.handleClick(3*i+1)" />
    <Square value="props.squares[3*i+2]" onSquareClick="() => this.handleClick(3*i+2)" />
</div>

or maybe:

<div class="board-row" t-foreach="[0,1,2]" t-as="i" t-key="i">
  <t t-foreach="[0,1,2]" t-as="j" t-key="j">
     <Square value="props.squares[3*i + j]" onSquareClick="() => this.handleClick(3*i+j)" />
  </t>
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants