For this task requirement we need to show the description above of the select field but now it was showing below so that item options are coming from diffrent data view so that description is not going inside that data view for that we need to extend that child view of option.collection and need to add the ezsheild view then by using the jquery render method we can show that description above of that field
declare inside the respective view get context:
var self = this;
var message = new JJezSheildezSheildView({
container: this.container,
model: this.model,
application: this.options.application,
});
var $custcolagezshield = jQuery('#custcol_ag_ezshield-container')
$custcolagezshield.before(message.render().$el.html());
if you want to hide the ezsheild description for personalized item need to give set timer function to hide that particular item
setTimeout(() => {
var custitem_jj_liq_pixels_personalization = this.model.get("item").attributes.custitem_jj_liq_pixels_personalization;
if (custitem_jj_liq_pixels_personalization) {
jQuery('#custitemTagShowEzOpt').hide();
} else {
var message = new JJezSheildezSheildView({
container: this.container,
model: this.model,
application: this.options.application,
});
var $custcolagezshield = jQuery('#custcol_ag_ezshield-container');
$custcolagezshield.before(message.render().$el.html());
}
}, 200);