# Dynamic Binding for Properties in Elements

**URL:** <https://forum.ionicframework.com/t/dynamic-binding-for-properties-in-elements/205018>\
**Category:** Stencil\
**Created:** [February 17, 2021, 3:23pm UTC](https://forum.ionicframework.com/t/dynamic-binding-for-properties-in-elements/205018 "2021-02-17T15:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolfomat](https://avatars.discourse-cdn.com/v4/letter/w/a88e4f/32.png) [@wolfomat](https://forum.ionicframework.com/u/wolfomat)\
**Post date:** [February 17, 2021, 3:23pm UTC](https://forum.ionicframework.com/t/dynamic-binding-for-properties-in-elements/205018/1 "2021-02-17T15:23:43Z")

</div>

Nothing found in docs. What I wanted to perform in a component is a dynamic list of attributes passing to the render() functions.

At the moment it is possible to use in Render for dynamically determine the tag to be rendered.  
2nd thing is, is there a possiblilty to just get the HtmlElement and render it straight forward in render() within the tsx file? I did not find anything on this topic, maybe i even don’t know how to search.

**Stencil version:**

```auto
subito-core-components@0.0.1 C:\dev\git2\core-components
+-- @stencil/core@2.4.0
`-- @stencil/sass@1.4.1
  `-- @stencil/core@2.4.0 deduped

```

**I’m submitting a:**

bug report  
 feature request  
 support request =\> Please do not submit support requests here, use one of these channels: [https://stencil-worldwide.herokuapp.com/](https://stencil-worldwide.herokuapp.com/) or [https://forum.ionicframework.com/](https://forum.ionicframework.com/)

**Current behavior:**

**Expected behavior:**

**Steps to reproduce:**

**Related code:**

```auto
render() {
    return (
        <Host>
            <select class={this.cssClassMap} aria-label={this.label}>
                {
                    this.options.map((opt) => {
                        const Tag = 'option';
                        return <Tag value={this.extractValue(opt)}>{this.writeElement(opt, ['value'])}</Tag>;
                    })
                }
            </select>
        </Host>
    );
}

```

**Other information:**

```auto
 this.options.map((opt) => {
                    const Tag = 'option';
                    return <Tag determineAttributeList(opt)>{this.writeElement(opt, ['value'])}</Tag>;
                })

```

At the moment, there is not determineAttributeList(opt) function.  
I just wanted to parse those in a string array as key-value pair and propagate them with … but this did not work.
