사용자가 jquery datatable에서 행을 클릭 할 때마다 jqueryui 모달을 표시 할 수 있으며 아래 주어진 예제를 따르고 있습니다. jquery datatable - 선택한 레코드 아래에 jquery UI 모달 배치
https://datatables.net/extensions/responsive/examples/display-types/jqueryui-modal.html
내가 선택한 행 아래의 모달 대화 상자를 배치 할 수 있습니다, 어쨌든이 있나요?기대 :
내 코드 : 나는 아래 그림과 같이 위치를 설정하려고
. 그러나 예상대로 작동하지 않습니다. 선택된 datatable 레코드의 위치를 jquery UI 모달 대화 상자에 전달/할당하는 방법은 무엇입니까?
responsive: {
details: {
display: $.fn.dataTable.Responsive.display.modal({
header: function() {
return 'View Record';
},
dialog: {
modal: true,
width: 800,
resizable: false,
position: { my: "left top", at: "left bottom", of: $(tableId) },
create: function (event, ui) {
},
open: function (event, ui) {
}
}
}),
모든 제안/권장 사항에 감사드립니다.
'$ (tableId) '란 무엇입니까? – Twisty
tableId ->는 jquery 데이터 테이블의 ID입니다. $ (tableId) -> jquery 객체입니다. –
'$ ("#"+ tableId)가 필요하지 않습니다. " – Twisty