YUI DataTable: how to edit column headers?

I would like to be able to edit column headings in the same way as I can change row values. Has anyone come up with a way to do this? I do not see mention of this in the docs.

+3
source share
2 answers

I would like to check the box in the title instead of the regular title. The attribute labelwill accept HTML.

Here is an example myColumnDefsI am switching to YUI Datatable:

var myColumnDefs = [
    {key:"check", label:'<input id="check-all" type="checkbox" onclick="checkAll()">', formatter:"checkbox"},
    {other columns}
];            
+3
source

The column header is configured in the column:

 var myColumnDefs = [
      {key:"myID", label:"id", sortable:true},
      {key:"myDate", label:"date", sortable:true},
      {key:"MyStatus", label:"status", sortable:false}
                    ];

, css , . Inline Cell Editing, , YUI. ! , YUI !

0

Source: https://habr.com/ru/post/1721618/


All Articles