Predefined Layouts
We provide some basic layouts that can be used out of the box without writing your own layouts. Check out the on board layouts in the Layout Documentation
Custom predefined Layouts
You can create your own predefined layouts that can be used to set layouts on the NIMMSTA Smart Watch. Predefined layouts must extend the class NimmstaLayout and can look like the following.
Info
Check out the Layout Documentation for more examples and explanations.
class MyOwnLayout extends NimmstaLayout {
constructor(text1, text2) {
const xml = `
<?xml version="1.0" encoding="utf-8"?>
<NimmstaLayout name="Success Layout">
<device width="1.54" height="1.54" pxx="200" pxy="200">
<screen default="true" name="default">
<staticElements>
<statusbar/>
<cell horizontalAlignment="center" y="40" name="text1"></cell>
<cell horizontalAlignment="center" y="80" name="text2"></cell>
</staticElements>
</screen>
</device>
</NimmstaLayout>
`;
super(xml, { "text1": text1, "text2": text2 });
}
}