如何在extJS标记字段

时间:2017-03-14 14:33:17

标签: javascript css extjs extjs6 tagfile

我想在我的标记字段下方放置一条默认消息。

我的代码: -

{
          xtype: 'tagfield',
          fieldLabel: 'Select a Show',
          store: shows,
          displayField: 'show',
          valueField: 'id',
          queryMode: 'local',
          filterPickList: true
    }

我想要一些标签ex:"你好"在那个特定的盒子里

enter image description here

我认为使用面板和两个项目 像这样,

{
    xtype : 'panel',
    items :[{
        xtype : 'tagfield',
    },{
        HTML : "mYtEXT"
    }]
}

但这需要大量的CSS和太多的游戏工作。

还有其他方法可以实现这一目标。

1 个答案:

答案 0 :(得分:2)

标记字段中有afterBodyEl个配置。

afterBodyEl: 'This is description'