Using 'select' type in oh-input component

Hey,

I’d like to use the select type of the oh- / f7-input component. As far as I can tell, it’s not possible at the moment to assign different values to the the selection.

uid: input_selection
component: f7-card
config:
  title: Input
slots:
  default:
    - component: oh-input
      config:
        type: select
        value:
          - Something
          - Something else

oh-input_select

Am I missing something here or should I open a feature suggestion on github for this?

thanks in advance

I think value represents the value of the element after you have chosen between your predefined options (dropdown box). I think you need to define your options within a seperate slot - probably oh-input-item.

Thanks for the advice but tried that already without success…

uid: input_selection
component: f7-card
config:
  title: Input
slots:
  default:
    - component: oh-input
      config:
        type: select
      slots:
        default:
          - component: Label
            config:
              text: Option1
          - component: Label
            config:
              text: Option2
          - component: oh-input-item
            config:
              title: OptionItem1
          - component: oh-input-item
            config:
              title: OptionItem2

According to the f7 docs, default should be the right slot here…

just realized that oh-input-item is definitely wrong. trying some other stuff…

Opened an issue for this here:
Can't add selection elements to oh-input type 'select' · Issue #982 · openhab/openhab-webui · GitHub