Skip to content

Commit

Permalink
Added documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
svenrog committed Oct 17, 2024
1 parent 6cd769b commit 254ac49
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Requires using .NET 5.0 or higher and Optimizely 12

- `dotnet add package Geta.Optimizely.GenericLinks`

Make sure to read the first example about implementation.

### Examples

- [Example link collection with thumbnails](./docs/example-link-data-collection.md)
Expand Down
14 changes: 14 additions & 0 deletions docs/example-link-data-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ public class ThumbnailLinkData : LinkData
get => GetAttribute((v) => ContentReference.Parse(v));
set => SetAttribute(value, (v) => v.ToString());
}
[Display(Name = "Image description", Order = 10)]
public virtual string ThumbnailAlt
{
get => GetAttribute();
set => SetAttribute(value);
}
[Display(Name = "Image quality", Order = 20)]
public virtual double ThumbnailQuality
{
get => GetAttribute(Convert.ToDouble);
set => SetAttribute(Convert.ToString(value));
}
}
```

Expand Down
Binary file modified docs/images/thumbnail-link-modal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 254ac49

Please sign in to comment.