itemStyleFunc method

Tree itemStyleFunc(
  1. TreeNodeStyleFunc fn
)

Sets the item style function. Use this for conditional styling.

This mirrors lipgloss v2 ItemStyleFunc.

Implementation

Tree itemStyleFunc(TreeNodeStyleFunc fn) {
  _ensureRenderer().style.itemStyle = fn;
  return this;
}