Skip to main content

FormatMethods

JS Functions available in UIs

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public static class FormatMethods

Fields

Currency

USD Currency

View Source
Declaration
public const string Currency = "currency"

Bytes

Human Readable File Size

View Source
Declaration
public const string Bytes = "bytes"

Icon

Render Image URL as an img icon

View Source
Declaration
public const string Icon = "icon"

IconRounded

Render Image URL as an img icon

View Source
Declaration
public const string IconRounded = "iconRounded"

Attachment

Register download link containing file name and file extension icon

View Source
Declaration
public const string Attachment = "attachment"

Linkify URLs options: added as attributes to <a> element, use 'cls' or 'className' for class attribute.

View Source
Declaration
public const string Link = "link"

LinkEmail

Linkify Emails with mailto: options: {subject:'Subject',body:'Email Body'} all other options added as HTML attributes

View Source
Declaration
public const string LinkEmail = "linkMailTo"

LinkPhone

Linkify Phone number with tel: options: added as attributes to <a> element, use 'cls' or 'className' for class attribute.

View Source
Declaration
public const string LinkPhone = "linkTel"

Hidden

Hides field from being displayed in search results

View Source
Declaration
public const string Hidden = "hidden"