-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Make root element id customizable
- Loading branch information
Alex Powell
committed
Jul 23, 2024
1 parent
bad79fd
commit b2b4e64
Showing
3 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
/* @var $page array */ | ||
?> | ||
<div id="app" data-page="<?= htmlspecialchars(json_encode($page)) ?>"></div> | ||
<div id="<?= \Yii::$app->get('inertia')->rootElementId ?>" data-page="<?= htmlspecialchars(json_encode($page)) ?>"></div> |