- return {
- data => $text_block->title || '',
- metadata => { id => $text_block->id, type => 'textblock' },
- attr => { id => "tb-" . $text_block->id, href => $params{href} || '#' },
- };
-}
-
-sub requirement_spec_item_jstree_data {
- my ($self, $item, %params) = @_;
-
- my @children = map { $self->requirement_spec_item_jstree_data($_, %params) } @{ $item->sorted_children };
- my $type = !$item->parent_id ? 'section' : 'functionblock';