gijgo icon indicating copy to clipboard operation
gijgo copied to clipboard

How to know checkbox selected or unselected event?

Open hengchengfei opened this issue 3 years ago • 0 comments

  var tree = $("#tree").tree({
    primaryKey: "id",
    uiLibrary: "bootstrap4",
    dataSource: [{ id: 1, text: "aa" }],
    checkboxes: true,
    select: function (e, node, id) {
      console.log(id);
    },
  });

  tree.on("select", function (e, node, id) {
    console.log(id);
  });

hengchengfei avatar May 29 '22 09:05 hengchengfei