Interface ITweakMedia
Tweak API for various media settings. Specifically meant for images and pictures.
Some methods such as PictureClass will only have an effect if used on Picture(...) methods.
[InternalApi_DoNotUse_MayChangeWithoutNotice("New v18.03, still WIP, especially the name could still change")]
public interface ITweakMedia
Remarks
- Added v18.03
- All methods return a ITweakMedia to allow chaining.
Methods
ImgAlt(string)
ITweakMedia ImgAlt(string alt)
Parameters
altstring
Returns
ImgAltFallback(string)
ITweakMedia ImgAltFallback(string imgAltFallback)
Parameters
imgAltFallbackstring
Returns
ImgAttributes(IDictionary<string, object>)
ITweakMedia ImgAttributes(IDictionary<string, object> attributes)
Parameters
attributesIDictionary<string, object>
Returns
ImgAttributes(IDictionary<string, string>)
ITweakMedia ImgAttributes(IDictionary<string, string> attributes)
Parameters
attributesIDictionary<string, string>
Returns
ImgAttributes(object)
ITweakMedia ImgAttributes(object attributes)
Parameters
attributesobject
Returns
ImgClass(string)
ITweakMedia ImgClass(string imgClass)
Parameters
imgClassstring
Returns
LightboxDescription(string)
ITweakMedia LightboxDescription(string description)
Parameters
descriptionstring
Returns
LightboxEnable(bool)
Force Lightbox to be enabled (or disabled)
ITweakMedia LightboxEnable(bool isEnabled = true)
Parameters
isEnabledboolOptional enabled state, defaults to true
Returns
LightboxGroup(string)
Group name for lightbox. All images with the same group-name will be treated as an album.
ITweakMedia LightboxGroup(string group)
Parameters
groupstring
Returns
PictureAttributes(IDictionary<string, object>)
ITweakMedia PictureAttributes(IDictionary<string, object> attributes)
Parameters
attributesIDictionary<string, object>
Returns
PictureAttributes(IDictionary<string, string>)
ITweakMedia PictureAttributes(IDictionary<string, string> attributes)
Parameters
attributesIDictionary<string, string>
Returns
PictureAttributes(object)
ITweakMedia PictureAttributes(object attributes)
Parameters
attributesobject
Returns
PictureClass(string)
ITweakMedia PictureClass(string pictureClass)
Parameters
pictureClassstring
Returns
Resize(Func<ITweakResize, ITweakResize>?)
Configure the Resize Settings.
ITweakMedia Resize(Func<ITweakResize, ITweakResize>? tweak = null)
Parameters
tweakFunc<ITweakResize, ITweakResize>Tweak API to customize further settings
Returns
Resize(string?, NoParamOrder, Func<ITweakResize, ITweakResize>?)
Configure the Resize Settings.
ITweakMedia Resize(string? name, NoParamOrder noParamOrder = default, Func<ITweakResize, ITweakResize>? tweak = null)
Parameters
namestringName of an existing configuration, such as "Lightbox". If not specified (null) will default to "Content".
noParamOrderNoParamOrdertweakFunc<ITweakResize, ITweakResize>Tweak API to customize further settings
Returns
Resize(IResizeSettings, NoParamOrder, Func<ITweakResize, ITweakResize>?)
ITweakMedia Resize(IResizeSettings settings, NoParamOrder noParamOrder = default, Func<ITweakResize, ITweakResize>? tweak = null)
Parameters
settingsIResizeSettingsnoParamOrderNoParamOrdertweakFunc<ITweakResize, ITweakResize>
Returns
Toolbar(bool)
ITweakMedia Toolbar(bool enabled)
Parameters
enabledbool
Returns
Toolbar(IToolbarBuilder)
ITweakMedia Toolbar(IToolbarBuilder toolbar)
Parameters
toolbarIToolbarBuilder