Add Sheet Playground sample - #15
Conversation
|
|
||
| <img width="1920" height="1688" alt="sheet-playground" src="https://github.com/user-attachments/assets/59834dda-4fe7-461a-8dde-7f35f843f39b" /> | ||
|
|
||
| このサンプルは、カスタム Lightning Web コンポーネントのテンプレート内で **Mashmatrix Sheet LWC コンポーネント (`<msmx-sheet-sheet>`)** を直接埋め込み、制御する方法を示しています。 |
There was a problem hiding this comment.
<msmxsheet-sheet-component>
|
|
||
| <img width="1920" height="1688" alt="sheet-playground" src="https://github.com/user-attachments/assets/3eb61ff9-e230-4ed7-a8d5-6088f7112cce" /> | ||
|
|
||
| This sample demonstrates how to embed and control the **Mashmatrix Sheet LWC component (`<msmx-sheet-sheet>`)** directly within a custom Lightning Web Component's template. |
There was a problem hiding this comment.
<msmxsheet-sheet-component>
| label="Component ID" | ||
| value={draft.componentId} | ||
| onchange={handleComponentIdChange} | ||
| ></lightning-input> |
There was a problem hiding this comment.
The component id would not be changed (and developer should not change it) during the component lifecycle.
stomita
left a comment
There was a problem hiding this comment.
Doc/attribute name mismatch: README says context-record-id, component attribute is record-id
In README.md (line 166) and README_ja.md (line 169), the Property Binding section lists context-record-id, but msmxSheet's sheetComponent exposes the record context through the record-id attribute (@api recordId) — there is no context-record-id attribute.
The sample markup itself is correct: force-app/main/default/lwc/sheetPlayground/sheetPlayground.html (line 187) uses record-id={applied.contextRecordId}. Only the READMEs use the non-existent context-record-id name (the binding source variable is contextRecordId, which looks like where the mix-up came from).
Please update both READMEs to use record-id so the documented attribute names match the actual component API.
|
Findings from exercising the Sheet Playground sample:
Everything else checked out: markup/attribute names in both READMEs match the component API, and the sample demonstrates record-selection events, parameter changes, context-record switching, and book/sheet switching. |
What I Did:
Added a new Sheet Playground LWC sample demonstrating how to embed and interact with the
<msmx-sheet-sheet>component directly from a custom Lightning Web Component.Added a new Sheet Playground tab to the Sheet Integration Example app.
Updated the sample permission set to grant access to the new Sheet Playground tab.
Updated both README and README_ja with:
Note:
book-idandsheet-idproperties are not reflected when these values are updated dynamically after the component has been initialized.book-id/sheet-idupdates becomes available, the sample and documentation should be revisited and updated accordingly.