Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property Inspector <sdpi-select> Behaviour #90

Open
Elephant42 opened this issue Feb 16, 2025 · 1 comment
Open

Property Inspector <sdpi-select> Behaviour #90

Elephant42 opened this issue Feb 16, 2025 · 1 comment

Comments

@Elephant42
Copy link

The documentation for the datasource attribute on the property type says to return a payload that looks like this:
{
action,
event,
context,
payload: {
event: "getColors",
items: [{
label: 'Primary Colors',
children: [{
label: 'Red',
value: '#ff0000'
}, {
label: 'Green',
value: '#00ff00'
}, {
label: 'Blue',
value: '#0000ff'
}]
}, {
label: 'Black',
value: '#000000'
}, {
label: 'White',
value: '#ffffff'
}]
}
}

But as of writing this the SDK does not work using this payload structure, the select list is empty after the call returns.

However the callback works perfectly if the payload looks like below, so either the SDK is not behaving as designed, or the documentation does not reflect the SDK:
{
event: "getColors",
items: [{
label: 'Primary Colors',
children: [{
label: 'Red',
value: '#ff0000'
}, {
label: 'Green',
value: '#00ff00'
}, {
label: 'Blue',
value: '#0000ff'
}]
}, {
label: 'Black',
value: '#000000'
}, {
label: 'White',
value: '#ffffff'
}]
}

@ChekTek
Copy link
Member

ChekTek commented Feb 18, 2025

Hi @Elephant42,

Thank you for pointing this out! The SDPI components are a work in progress, we are actively working on integrating the UI components fully into the SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants