전문 번역가, 번역 회사, 웹 페이지 및 자유롭게 사용할 수 있는 번역 저장소 등을 활용합니다.
enter the datatransfer object.
Объект datatransfer
마지막 업데이트: 2018-02-21
사용 빈도: 1
품질:
the datatransfer object the datatransfer property is where all the dnd magic happens.
Свойство datatransfer– это то самое место, где реализуется перетаскивание.
마지막 업데이트: 2018-02-21
사용 빈도: 1
품질:
the datatransfer object exposes properties to provide visual feedback to the user during the drag process.
Объект datatransfer обладает свойствами, которые создают визуальную подсказку для пользователей в процессе перетаскивания.
마지막 업데이트: 2018-02-21
사용 빈도: 1
품질:
it holds the piece of data sent in a drag action. datatransfer is set in the dragstart event and read/handled in the drop event.
Объект datatransfer устанавливается в событии dragstart, а считывается и обрабатывается в событии drop.
마지막 업데이트: 2018-02-21
사용 빈도: 1
품질:
conveniently, datatransfer also has a getdata(format) for fetching the drag data by mimetype. here is the modification to process the column drop:
Удобно, что у объекта datatransfer есть также функция getdata(format), позволяющая доставлять перетаскиваемые данные по mime-типу. Вот как выглядит измененный процесс перетаскивания столбца:
마지막 업데이트: 2018-02-21
사용 빈도: 1
품질:
function handledragstart(e) { this.style.opacity = '0.4'; // this / e.target is the source node. } function handledragover(e) { if (e.preventdefault) { e.preventdefault(); // necessary. allows us to drop. } e.datatransfer.dropeffect = 'move'; // see the section on the datatransfer object. return false; } function handledragenter(e) { // this / e.target is the current hover target. this.classlist.add('over'); } function handledragleave(e) { this.classlist.remove('over'); // this / e.target is previous target element.
function handledragstart(e) { this.style.opacity = '0.4'; // this / e.target is the source node. } function handledragover(e) { if (e.preventdefault) { e.preventdefault(); // necessary. allows us to drop. } e.datatransfer.dropeffect = 'move'; // see the section on the datatransfer object. return false; } function handledragenter(e) { // this / e.target is the current hover target. this.classlist.add('over'); } function handledragleave(e) { this.classlist.remove('over'); // this / e.target is previous target element.
마지막 업데이트: 2018-02-21
사용 빈도: 1
품질: