Skip to content

Custom View not used inside a FormList #60

@chrissimon-au

Description

@chrissimon-au

Hi, thanks for the awesome tool, makes forms much easier with elmish!

I'm building a form but using tailwind, not Bulma. I had a look at the guidance 'what should I use' which suggests I could just use Fable.Forms.Simple and build my own views, but the 'custom views' example here builds on top of Fable.Forms.Simple.Bulma and embeds tailwindcss classes, which is what I'd like to do, so I have added that package and followed those steps.

It works perfectly for a simple form element, however when I try and add that field type to a 'nested' form inside a Form.list, it seems to render with the base class, instead of using my overridden RenderField. I've taken a look at the FormList source and can't work out why it would be doing that.

So a couple of questions:

  1. Any thoughts on why it might be doing that? Do I need to also override the view on FormList to ensure it doesn't, if so any suggestions on what should be different in that view?
  2. Am I on the right path here, or should I go back to Fable.Form.Simple and re-implement much of what is in Fable.Forms.Simple.Bulma?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions