I tried to output some InputText.Value in the console…
The Local-Preview always crashes with this Error, after ~0-2seconds:
Here’s the complete project: *.ux
<App Theme="Basic" ClearColor="#eeeeeeff">
<DockPanel>
<JavaScript File="MainView.js"/>
<StatusBarBackground DockPanel.Dock="Top" />
<ScrollViewer ClipToBounds="true">
<StackPanel>
<Slider />
<Button Text="Button" Clicked="{bt_clicked}"/>
<TextInput Value="{whatever}"/>
<Switch Alignment="Left" />
</StackPanel>
</ScrollViewer>
</DockPanel>
</App>
the *.js file:
var Observable = require("FuseJS/Observable");
var whatever = Observable("whatever");
function bt_clicked(){
console.log(whatever.value);
}
module.exports = {
whatever:whatever,
bt_clicked:bt_clicked
}