Category Archives: Web Tools

jQuery Datatable reload()

Example:

Reference:

  1. https://datatables.net/reference/api/ajax.reload()
  2. https://stackoverflow.com/questions/42905454/datatables-ajax-reload-loses-page

Set explicit value of a cell

By data type

https://phpspreadsheet.readthedocs.io/en/latest/topics/accessing-cells/

Datatable with buttons

Download with extensions

https://datatables.net/download/

HTML

Javascript

 

Integrate TinyMce and ResponsiveFilemanager

JS for RFM callback

https://www.tiny.cloud/docs/ui-components/urldialog/

Datatable Complete Example

Controller

Model

Javascript (index.js)

AjaxResponse Trait

 

Datatable with Row Details (Child Row)

Example:

https://datatables.net/examples/api/row_details.html

Data Format (with column name)

https://datatables.net/examples/ajax/data/objects.txt

Columns Config:

https://datatables.net/reference/option/columns

JS example:

 

Redis Commands

Reference:

http://redisdoc.com/list/lrange.html

Command Description
LPUSH key value [value …] 将一个或多个值 value 插入到列表 key 的表头

redis> LPUSH mylist a b c
(integer) 3

redis> LRANGE mylist 0 -1
1) “c”
2) “b”
3) “a”

LRANGE key start stop  返回列表 key 中指定区间内的元素,区间以偏移量 start 和 stop 指定。

LRANGE mylist 0 -1
取得mylist第一個到最後一個的元素

Reference:

Tinymce config for Laravel File Manager