# Render select options in vue single file component

**URL:** <https://forum.getkirby.com/t/render-select-options-in-vue-single-file-component/26070>\
**Category:** Questions\
**Created:** [July 25, 2022, 4:12pm UTC](https://forum.getkirby.com/t/render-select-options-in-vue-single-file-component/26070 "2022-07-25T16:12:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErVal](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@ErVal](https://forum.getkirby.com/u/ErVal)\
**Post date:** [July 25, 2022, 4:12pm UTC](https://forum.getkirby.com/t/render-select-options-in-vue-single-file-component/26070/1 "2022-07-25T16:12:00Z")

</div>

So I’m trying to create some custom blocks.  
And I’ve got a simple select field within the blueprint.  
Following that I’ve been trying to work out how to make it visible in a WYSIWYG editor.

My blueprint for the button

```auto
name: Button
icon: bolt
fields:
  linktype:
    label: Linktyp
    type: select
    width: 1/4
    options:
      normal: Normal
      mailto: E-Mail
      tel: Telefon
    default: normal
  link:
    width: 3/4
    label: Link
    type: text
  text:
    label: Text
    type: text

```

I’ve tried doing it like this in my Button.vue

```auto
 <select name="linktype"
          @input="update({ linktype: $event.target.value })">
          <option 
          :value="content.linktype.mailto">E-Mail</option>
          <option 
          :value="content.linktype.tel">Telefon</option>
          <option 
          :value="content.linktype.normal">Normal</option>
        </select>

```

But this isn’t doing anything it seems.

instead of `update` I also tried using `onChange`  
but the result of that was the following error message

> \_vm.onChange is not a function

Can you guys help me?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [July 25, 2022, 4:21pm UTC](https://forum.getkirby.com/t/render-select-options-in-vue-single-file-component/26070/2 "2022-07-25T16:21:49Z")

</div>

Why do you want to show a select field in your vue component? Given that the purpose of the vue component is to show a preview, this doesn’t seem to make that much sense? I’d actually expect to see a button (or more semantically current an anker element) that links to something depending on the value of your select field.
