Skip to content

Feature Request: Add Support for Custom Image Placeholder Services #3

Description

@lagerdigal1996

Suggested Feature

It would be beneficial to extend the functionality of the @Html.Placehold() method to support custom image placeholder services in addition to the existing http://placehold.it. This would allow users to specify different placeholder services that might offer unique styles or features which could enhance their prototyping experience.

Proposed Implementation

  • Introduce an optional parameter to the @Html.Placehold() method that accepts a base URL for the image service.
  • Allow users to specify additional options, such as image sizes and styles, as supported by the chosen placeholder service.

Example

@Html.Placehold(300, 300, "https://example.com/placeholder-service")

This feature would increase the flexibility of the Prototyping package and cater to a wider range of developer preferences.

Considerations

  • Ensure that the documentation is updated to reflect this new feature.
  • Test with various popular placeholder services to ensure robust integration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions