Value from joined table, can be sort by drag drop editor?
Value from joined table, can be sort by drag drop editor?
bumanerdene
Posts: 2Questions: 1Answers: 0
** Server section **
\DataTables\Editor::inst( $db, 'word')
->fields(
Field::inst( 'word.word' ),
Field::inst( 'sort.sort' )
->validator( 'Validate::numeric' ),
Field::inst( 'word_category.baseklass_id' )
)
->leftJoin('sort', 'sort.word_id', '=', 'word.id')
** Defined in Editor**
{
label: 'Order:',
name: 'sort.sort',
fieldInfo: 'This field can only be edited via click and drag row reordering.'
},
** Defined in Datatable**
{ data: 'sort.sort', className: 'reorder' },
** Config**
rowReorder: {
dataSrc: 'sort.sort',
editor: editor
},
This discussion has been closed.
Answers
Duplicate of this thread, closing.