eclipsesource / eclipsesource/tabris-js

android: component properties and events

Open
#2,232 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### unexpected behavior
when creating a component and defining properties and events to the classes, in certain components it does not receive the event type attributes

![component](https://lh3.googleusercontent.com/pLJ9p_j_FUUuhZjUYxkIIGd4n35g9po3DTfip-eCm03UJ6E8HMbaHqXBiDRiDvHfU5v6mK8j8qDTz0X6HzOUFbBLlJzdNqBuLYkd=w1232-h666-rw-sm-pa-nu-v0)

```jsx
drawer.append(
true}>
true} />

)
```
the definition of the components are defined like this
```javascript

NativeObject.defineProperties(ComponentOne.prototype, {
myProp: {type: 'string', default: ''}
})
NativeObject.defineEvents(ComponentOne.prototype, ['itemSelected'])

```

while one component receives all its properties, the other does not.
the component receiving the event has to be defined by set and get.

### Environment

- Tabris.js: version: 3.8
- Device: redmi note 8
- OS: MIUI 12.0.3 Android 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.