0
버전 3.5.1을 사용하고 있습니다. 난 둘 다select2로 비활성화하면 작동하지 않습니다.
enable: false
및
disable: true
를 사용하여 시도했지만 둘 다 일 것 같다했습니다. 여기 내 코드 조각입니다.
var select2Node = $element[0].firstChild;
$(select2Node).select2({
data: choices,
// Suppress the search box.
minimumResultsForSearch: -1,
allowClear: false,
width: '200px',
disable: true,
formatSelection: function(object, container) {
return $filter('truncateAtFirstInput')(object.id);
}
});