Skip to content

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