/
githubmirror
/
react-beautiful-dnd
Обзор
Документация
Войти
/
githubmirror
/
react-beautiful-dnd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/view/data-attributes.js
37 строк
754 B
Alex Reardon
12.0 (#1487)
29 окт 2019, 01:40
Не верифицирован
29 окт 2019, 01:40
24a8e60
Код
Авторство
О чём код?
// @flow export const prefix: string = 'data-rbd'; export const dragHandle = (() => { const base = `${prefix}-drag-handle`; return { base, draggableId: `${base}-draggable-id`, contextId: `${base}-context-id`, }; })(); export const draggable = (() => { const base: string = `${prefix}-draggable`; return { base, contextId: `${base}-context-id`, id: `${base}-id`, }; })(); export const droppable = (() => { const base: string = `${prefix}-droppable`; return { base, contextId: `${base}-context-id`, id: `${base}-id`, }; })(); export const placeholder = { contextId: `${prefix}-placeholder-context-id`, }; export const scrollContainer = { contextId: `${prefix}-scroll-container-context-id`, };