Shell + page loading
And: - some basic stylesheet i found for basic html elements - a global lua method for navigating pages
This commit is contained in:
4
assets/pages/about.rml
Normal file
4
assets/pages/about.rml
Normal file
@@ -0,0 +1,4 @@
|
||||
<div id="page-root" class="page">
|
||||
<h1>About</h1>
|
||||
<p>This is a static page</p>
|
||||
</div>
|
||||
5
assets/pages/lua-test.rml
Normal file
5
assets/pages/lua-test.rml
Normal file
@@ -0,0 +1,5 @@
|
||||
<div id="page-root">
|
||||
<h1>Lua test page</h1>
|
||||
<p>This button uses <code>NavigateTo('about')</code> lua code instead of a registered C++ event</p>
|
||||
<button onclick="NavigateTo('about')">Go to About Page</button>
|
||||
</div>
|
||||
5
assets/pages/testPage.rml
Normal file
5
assets/pages/testPage.rml
Normal file
@@ -0,0 +1,5 @@
|
||||
<div id="page-root" data-model="testPage" class="page">
|
||||
<h1>Test page</h1>
|
||||
<p>{{greeting}}</p>
|
||||
<button id="test-btn">Button clicked: {{counter}} times</button>
|
||||
</div>
|
||||
Reference in New Issue
Block a user