patternfly-yew 0.7.4

PatternFly 5 components for Yew
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::prelude::{Cell, CellContext};
use std::rc::Rc;

/// A node in a tree
pub trait TreeNode<C> {
    fn render_cell(&self, ctx: CellContext<'_, C>) -> Cell;

    fn children(&self) -> Vec<Rc<dyn TreeNode<C>>>;
}

/// A model providing access to tree nodes
pub trait TreeTableModel<C> {
    fn children(&self) -> Vec<Rc<dyn TreeNode<C>>>;
}