当前位置: 动力学知识库 > 问答 > 编程问答 >

orbeon - Is it possible to have a select in a custom control's basic settings

问题描述:

Is it possible to put a dropdown list in a custom control's Basic Settings? I have tried the below in custom control, but the select doesn't show up. The page on metadata only mentions xf:inputs, but I would to be able to put a select in there (to restrict possible values)

<template>

<ap:binput inputtype="email" min="2">

<xf:label ref=""/>

<xf:hint ref=""/>

<xf:help ref=""/>

<xf:alert ref=""/>

</ap:binput>

</template>

<control-details>

<xf:input ref="@min" type="xf:decimal">

<xf:label lang="en">Minimum Value</xf:label>

<xf:hint />

</xf:input>

<xf:select1 ref="@inputtype">

<xf:label lang="en">Input Type</xf:label>

<xf:hint lang="en">HTML5 Input Type</xf:hint>

<xf:item>

<xf:label lang="en">Third choice</xf:label>

<xf:value>3</xf:value>

</xf:item>

<xf:item>

<xf:label lang="en">Third choice</xf:label>

<xf:value>2</xf:value>

</xf:item>

</xf:select1>

</control-details>

网友答案:

You read the documentation correctly: currently only <xf:input> controls are supported inside <fb:control-details>. Following this questions, I've created an RFE for this.

You can see where this is done if you look at the source of dialog-control-details.xbl, and should you want to support one more control there, it should be reasonably easy to update that file for that purpose.

分享给朋友:
您可能感兴趣的文章:
随机阅读: