Exemplo n.º 1
0
        public TableTemplateTag(Table table, ICellBuilderLibrary builders)
        {
            Style("display", "none");
            AddClass(GrammarConstants.TEMPLATES);

            AddHeaderRow(x =>
            {
                x.Header(" ").AddClass("command");
                table.Cells.Each(cell =>
                {
                    x.Append(new CellHeaderTag(cell));
                });
            });

            AddBodyRow(x =>
            {
                x.Cell().AddClass("command").Add<DeleteIconTag>().AddClass("remover");
                table.Cells.Each(cell => x.Cell().AddSafeClassName(cell.Key).Append(builders.BuildTag(cell)));
            });
        }
Exemplo n.º 2
0
        public TableTemplateTag(Table table, ICellBuilderLibrary builders)
        {
            Style("display", "none");
            AddClass(GrammarConstants.TEMPLATES);

            AddHeaderRow(x =>
            {
                x.Header(" ").AddClass("command");
                table.Cells.Each(cell =>
                {
                    x.Child(new CellHeaderTag(cell));
                });
            });

            AddBodyRow(x =>
            {
                x.Cell().AddClass("command").Child(new LinkTag("remove", "#", "remover"));
                table.Cells.Each(cell =>
                {
                    x.Cell().AddClass(cell.Key).Child(builders.BuildTag(cell));
                });
            });
        }
Exemplo n.º 3
0
        public TableTemplateTag(Table table, ICellBuilderLibrary builders)
        {
            Style("display", "none");
            AddClass(GrammarConstants.TEMPLATES);

            AddHeaderRow(x =>
            {
                x.Header(" ").AddClass("command");
                table.Cells.Each(cell =>
                {
                    x.Append(new CellHeaderTag(cell));
                });
            });

            AddBodyRow(x =>
            {
                x.Cell().AddClass("command").Add <DeleteIconTag>().AddClass("remover");
                table.Cells.Each(cell =>
                {
                    x.Cell().AddClass(cell.Key).Append(builders.BuildTag(cell));
                });
            });
        }
Exemplo n.º 4
0
 public SentenceWriter(GrammarTag grammar, ICellBuilderLibrary builders)
 {
     _grammar = grammar;
     _builders = builders;
 }
Exemplo n.º 5
0
 public SentenceWriter(GrammarTag grammar, ICellBuilderLibrary builders)
 {
     _grammar  = grammar;
     _builders = builders;
 }