Fórumok
How to remove buttons (Add, Select) from Liferay.AssetTagsSelector
Andrej Litowka, módosítva 12 év-val korábban
How to remove buttons (Add, Select) from Liferay.AssetTagsSelector
Junior Member Bejegyzések: 79 Csatlakozás dátuma: 2010.06.30. Legújabb bejegyzések
Hi All! When I create an input element with Liferay.AssetTagsSelector two buttons "Add" and "Select" will be automatically added under the input field. Is there any way to remove this two buttons or substitute it with my own?
Thanks and regards,
Andrej
Thanks and regards,
Andrej
Nguyen Tue, módosítva 10 év-val korábban
RE: How to remove buttons (Add, Select) from Liferay.AssetTagsSelector
New Member Bejegyzés: 1 Csatlakozás dátuma: 2013.07.01. Legújabb bejegyzések
You can hook js file: html/js/liferay/asset_tags_selector.js.
Find the function "_renderIcons" and REM block code following:
-----------------------------------------------------------------------------------
Goodluck!!!
Find the function "_renderIcons" and REM block code following:
-----------------------------------------------------------------------------------
/* if(instance.get('allowAddSelectBtn')){
var toolbar = [
{
handler: {
context: instance,
fn: instance._onAddEntryClick
},
icon: 'plus',
id: 'add',
label: Liferay.Language.get('add'),
title: Liferay.Language.get('add-tags')
},
{
handler: {
context: instance,
fn: instance._showSelectPopup
},
icon: 'search',
id: 'select',
label: Liferay.Language.get('select-tags'),
title: Liferay.Language.get('select-tags')
}
];
} else if(instance.get('allowSelectBtn')) {
var toolbar = [
{
handler: {
context: instance,
fn: instance._showSelectPopup
},
icon: 'search',
id: 'select',
label: Liferay.Language.get('select-tags'),
title: Liferay.Language.get('select-tags')
}
];
} */
Goodluck!!!