jrglaber/dhtmlx

Biblioteca para trabalhar com DHTMLX Grid.

dev-master 2015-07-01 20:30 UTC

This package is auto-updated.

Last update: 2024-04-29 03:07:10 UTC


README

setEnableMultiselect(true) ->setEnableColumnAutoSize(true) ->setActive(true); $item = new Dhtmlx\DhtmlColumn("column1"); $item->label = "Coluna 1"; $item->type = \Dhtmlx\Functions\SetColTypes::TYPE_RO; $item->filter = Dhtmlx\Functions\AttachHeader::TEXT_FILTER; $item->width = 200; $item->align = \Dhtmlx\Functions\SetColAlign::ALIGN_LEFT; $dhtmlx->addColspan($item); $item = new Dhtmlx\DhtmlColumn("column2"); $item->label = "Coluna 2"; $item->type = \Dhtmlx\Functions\SetColTypes::TYPE_RO; $item->filter = Dhtmlx\Functions\AttachHeader::SELECT_FILTER; $item->width = 300; $item->sort = \Dhtmlx\Functions\SetColSorting::SORT_STR; $item->align = \Dhtmlx\Functions\SetColAlign::ALIGN_CENTER; $dhtmlx->addColspan($item); $dhtmlx->addRow(1, array("a1", "b1")); $dhtmlx->addRow(2, array("a2", "b2")); $dhtmlx->addRow(3, array("a3", "b3")); \Dhtmlx\Functions\SetRowHidden::getInstance()->id = 3; $dhtmlx->addFunction(\Dhtmlx\Functions\SetRowHidden::getInstance()); \Dhtmlx\Events\OnRowSelect::getInstance()->setFunction("alert('Linha de id ' + id);"); $dhtmlx->addEvent(\Dhtmlx\Events\OnRowSelect::getInstance()); echo $dhtmlx->rendererHeader(); echo $dhtmlx->rendererHtml(); echo $dhtmlx->render(); ?> <script> label = "Novo Label"; echo \Dhtmlx\Functions\SetColumnLabel::getInstance()->render(); ?> function cell(row,column){ idColumn = 'column'; \Dhtmlx\Functions\CellById::getInstance()->idRow = 'row'; echo "return " . \Dhtmlx\Functions\CellById::getInstance()->render(); ?> } var teste = cell(1,0); console.dir(teste.cell.innerHTML); </script>