protected override FieldDefinition GetFieldDefinitionTemplate()
        {
            var def = new NoteFieldDefinition
            {
                NumberOfLines = Rnd.Int(20) + 1,
                RichText = Rnd.Bool(),
                UnlimitedLengthInDocumentLibrary = Rnd.Bool()
            };

            return def;
        }
Ejemplo n.º 2
0
 public static ModelNode AddNoteField(this ModelNode model, NoteFieldDefinition definition, Action<ModelNode> action)
 {
     return model.AddDefinitionNode(definition, action);
 }
Ejemplo n.º 3
0
 public static ModelNode AddNoteField(this ModelNode model, NoteFieldDefinition definition)
 {
     return AddNoteField(model, definition, null);
 }