Hi,
I don’t know if it’s actually a bug or if I’m using it badly, but I have a problem with the Match/Case thing.
Here is my (simplified for a test case) code : MainView.js
var Observable = require('FuseJS/Observable');
var model = {
fields: [{
type: 'Text'
}, {
type: 'Image'
}]
};
module.exports = {
model: Observable(model)
};
MainView.ux
<App Theme="Basic" Background="#eeeeeeff">
<JavaScript File="MainView.js"></JavaScript>
<StackPanel>
<Each Items="{model.fields}">
<Panel>
<Text Value="Item :" />
<Match Value="{type}">
<Case Value="Text">
</Case>
<Case Value="Image">
</Case>
</Match>
</Panel>
</Each>
</StackPanel>
</App>
And it raises this error during the build : None of the global resources with alias 'Text' can be used here: The type must be compatible with 'object'. - [...]MainView.ux(8:1):E
Thanks for your help !