是否可以在自定义控件的基本设置中设置 select

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

是否可以在自定义控件的基本设置中加入下拉列表?我在自定义控件中尝试了以下内容,但 select 没有出现。 page on metadata 只提到了 xf:input,但我可以在其中放一个 select(以限制可能的值)

<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>

您没看错文档:目前 <fb:control-details> 中只支持 <xf:input> 控件。根据这些问题,我创建了 an RFE for this.

如果您查看 dialog-control-details.xbl 的源代码,您可以看到这是在哪里完成的,如果您想在那里支持更多控件,那么为此目的更新该文件应该相当容易。