Skip to main content

row_form

Function row_form 

Source
pub fn row_form<Model: Clone + PartialEq + 'static, FormModel: Clone + 'static>(
    initial_state: RowState,
    item: &Model,
    create_form_model: fn(&Model) -> FormModel,
    update_model: fn(&Model, &FormModel, &Context) -> RowResult<Model>,
    render_view: fn(_: &Model, create_buttons: CreateFn, alert: Computed<bool>) -> DomNode,
    render_form: fn(_: &FormModel, buttons: DomNode) -> DomNode,
    process_label: String,
    process: ProcessCallback<Model>,
    cancel_label: String,
    cancel: CancelCallback,
    delete: Option<ProcessCallback<Model>>,
    labels: ResourceTableLabels,
) -> DomNode