Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tpn-naoya-takahashi authored Mar 13, 2024
1 parent b90f45c commit e8f9a35
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions al1.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@
document.getElementById('line').innerText = record.Line;
document.getElementById('box').innerText = record.Box;
});
function getTitle(){ return record.Title;
};
async function example(cmd) {
grist.onRecord((data) => cmd.output(data));
return "Added. Now change a cursor position in a table and observe the result.";
}
// function getTitle(){ return record.Title;
//};
</script>

<div x-data="{ title: '' }" x-init="title = getTitle()">
<div x-data="{ title: '' }" x-init="example(title)">
<span>Title</span>
<span x-text="title"></span>
</div>
Expand Down

0 comments on commit e8f9a35

Please sign in to comment.