开发者

ExtJs - what are the methods to display the description for the field?

开发者 https://www.devze.com 2023-04-11 08:03 出处:网络
Which have the means to derive a description of the field (such as text, combobox) of the table in front of the text input field?

Which have the means to derive a description of the field (such as text, combobox) of the table in front of the text input field? Appearance that was:

ExtJs - what are the methods to display the description for the field?

ie a question mark next to the field - it points to a question mark - shows information on the field. When the 开发者_运维百科mouse is a query to the database from there from a particular table to get a description of the field. How best to implement it?


http://jsfiddle.net/akat/UgLN4/

(You will have to use an appropriate image and probably style it so that it looks 'better')


A pretty ugly but easy way to do this is just to include the HTML for the icon in the description.

new Ext.FormPanel({
    height: 100,
    renderTo: Ext.getBody(),
    items: [{
        xtype: 'textfield',
        fieldLabel: 'Status <img src="./questionmark.png" title="User status" />'
    }]
})

It might be more elegant to look at writing a plugin for Ext.form.Field .

0

精彩评论

暂无评论...
验证码 换一张
取 消