Skip to content

Support for deep level properties #540

@maskedmouse

Description

@maskedmouse

Excel Type

  • XLSX
  • XLSM
  • CSV
  • OTHER

MiniExcel Version

1.31.2

Description

When filling data using a template it only seems to support top level properties?
I have a collection which has deeper level properties that I want to fill
Purely for example {{Logs.User.Name}} doesn't get filled

var export = new
{
    Logs = new[]
    {
        new
        {
            User = new
            {
                Name = "Nick"
            }
        },
        new
        {
            User = new
            {
                Name = "Sam"
            }
        }
    }
};
public class ExportData
{
	public List<Log> Logs;
}

public class Log
{
	public User User;
}

public class User
{
	public string Name;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions