View Full Version : Combobox use of afterBodyEl, afterLabelTextTpl
ferreol.robert
11 Oct 2012, 1:16 AM
Hi,
I tried to used afterBodyEl, afterLabelTextTpl, etc. without success.
I have save my attempt here http://jsfiddle.net/EFFMA/
Has someone already used those properties with success ?
Thanks
mitchellsimoens
15 Oct 2012, 8:16 AM
Looking at the source, in order for afterBodyEl to be used you must have msgTarget = 'side':
var states = Ext.create('Ext.data.Store', {
fields : ['abbr', 'name'],
data : [
{"abbr" : "AL", "name" : "Alabama"},
{"abbr" : "AK", "name" : "Alaska"},
{"abbr" : "AZ", "name" : "Arizona"}
]
});
Ext.create('Ext.form.ComboBox', {
fieldLabel : 'Choose State',
store : states,
queryMode : 'local',
displayField : 'name',
valueField : 'abbr',
afterBodyEl : 'Test',
msgTarget : 'side',
afterLabelTextTpl : 'Test 2',
renderTo : Ext.getBody()
});
Also the afterLabelTextTpl is also showing up in this simple test using 4.1.2
bambam
9 Jan 2013, 5:14 AM
Looking at the source, in order for afterBodyEl to be used you must have msgTarget = 'side'
Sorry, but I can't understand how msgTarget = 'side' helps to use afterBodyEl config.
If we'll go jsfiddle and run your example, we'll see afterLabelTextTpl is working, but not afterBodyEl.
(Sorry if my English doesn't let me understand your explaining)
extjs.mscit
25 Jul 2013, 2:29 AM
Thanks for help with example, but i want to display "*" next to combobox, but it appears under combobox not at side possision, but bottom position. I set width 100%, even no success.
How to display on side??
Thanks.
Powered by vBulletin® Version 4.2.3 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.