Stash - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki

STASH : DataSource

Example (requires values be in the stash, see stash() event for adding a key-value pair to the stash)

<!-- Stash Datasource returns all stash data values -->
<!-- Stash values are local to devices and stored within each individual application -->
<!-- To add or remove stash values use the stash() event -->
<STASH id="STASH" autoexecute="true" />
<ROW valign="end">
	<TEXT style="h3" color="{THEME.primary}">Stash</TEXT>
	<PAD left="12" bottom="6">
		<TEXT size="18" color="{THEME.primary}">({SYSTEM.domain})</TEXT>
	</PAD>
</ROW>
<PAD top="30" />
<BOX height="={SYSTEM.screenheight} - 250">
<!-- Using a Data UI Widget we can display all the values of the STASH datasource by binding to its 2 data fields, `key` and `value` -->
	<TABLE id="stashtabl" data="STASH">
		<TH> <!-- Table Header -->
			<TD sort="key">
				<TEXT label="Key" />
			</TD>
			<TD sort="value">
				<TEXT label="Value" />
			</TD>
		</TH>
		<TR> <!-- Table Rows -->
			<TD>
				<TEXT label="{data.key}" />
			</TD>
			<TD>
				<TEXT label="{data.value}" />
			</TD>
		</TR>
	</TABLE>
</BOX>
⚠️ **GitHub.com Fallback** ⚠️