Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Fill ModelMetadata gaps needed for HTML helpers #323

@dougbu

Description

@dougbu

The HTML helpers aren't completely copied over but already contain TODO items for missing ModelMetadata properties:

  • DisplayName, which is particularly important
  • HideSurroundingHtml, the opposite of [Hidden] attribute’s DisplayValue property
  • SimpleDisplayText (and protected virtual GetSimpleDisplayText() method), which @sornaks has already begun adding
  • ShowForDisplay, which we might need to skip since [ScaffoldColumnAttribute] doesn't seem to exist (yet?)

In addition the default editor templates need:

  • HasNonDefaultEditFormat
  • ShowForEdit, with same caveat as ShowForDisplay

And finishing validation will require:

  • IsRequired !!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions