tmf-leptos 0.1.1

Library to render TMF schema as forms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! RelatedPartyRef Module

use leptos::prelude::*;

use tmflib::HasRelatedParty;

pub fn related_part_ref<T : HasRelatedParty>(item : T) -> impl IntoView {
    let first_party = item.get_party(0).unwrap().clone();
    view!{
        <label for="related_party">Related Party</label>
        <input type="text" value={first_party.name} />
    }
}