MiniExcel icon indicating copy to clipboard operation
MiniExcel copied to clipboard

Support for deep level properties

Open maskedmouse opened this issue 2 years ago • 0 comments

Excel Type

  • [x] 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;
}

maskedmouse avatar Nov 13 '23 10:11 maskedmouse