During exploration of possibilities to my previous post Question about dynamic bindings I try to use StructuredProperty to solve my problem.
During test of this StructuredProperty based on the “StructProp“ widget from usecase lib, I have create my own property with this parameters:
javascript
/**
* @cfg {Number} value=0
* Defines the data source of the row.
* @bindable
* @not_projectable
* @iatStudioExposed
* @iatCategory Data
*/
/**
* @cfg {String} componentName=''
* Defines the component name of the row.
* @not_projectable
* @iatStudioExposed
* @iatCategory Behaviour
*/
/**
* @cfg {String} attributeName=''
* Defines the attribute name of the row.
* @not_projectable
* @iatStudioExposed
* @iatCategory Behaviour
*/
The toolkit generated a folder “TestStruct” in meta folder, where it generated theses files:
TestStruct_base.scss
TestStruct_default.scss
The error is related to “TestStruct_default.scss” that include the “TestStruct_base” that should be in the “TestStruct_base.scss” file. But “TestStruct_base.scss” is an empty file.
Here is the TestStruct_default.scss file content:
@use "TestStruct_base.scss" as widgets_debug_StructProp_TestStruct;
.widgets_debug_StructProp_TestStruct_style_default {
@include widgets_debug_StructProp_TestStruct.base
}
If I compare to the usecase StructProp widget the “meta/ValueRow” there is more file:
ValueRow_Styles.xsd
ValueRow.type
But in my case I didn’t have style to apply, so I didn’t create these files and I didn’t want to have stylable properties in my StructuredProperty.
Maybe It’s mandatory but I feel like it’s more like a bug or I missed something