Methods
public static BuildLookupValuesAsString(choiceArray: ClientLookupValue[], isMultiLookup: boolean, setGroupDesc: boolean): string
Represents lookup values array in some strange format
Parameters
-
-
isMultiLookup: boolean
-
setGroupDesc: boolean
Returns
string
public static ChoiceFormatTypeToString(fileSystemObjectType: ChoiceFormatType): string
Parameters
Returns
string
public static ComputeRegisterTypeInfo(renderCtx: TemplateOverridesOptions): any
Parameters
Returns
any
public static ControlModeToString(mode: ClientControlMode): string
Parameters
Returns
string
public static FileSystemObjectTypeToString(fileSystemObjectType: FileSystemObjectType): string
Parameters
Returns
string
public static GetControlOptions(control: HTMLElement): any
Parameters
Returns
any
public static GetPropertiesFromPageContextInfo(context: RenderContext)
Parameters
public static InitContext(webUrl: string): ClientContext
Creates SP.ClientContext based on the specified Web URL. If the SP.Runtime.js script is not loaded, returns null
Parameters
Returns
ClientContext
public static IsValidControlMode(mode: number): boolean
Parameters
Returns
boolean
public static ReplaceUrlTokens(tokenUrl: string): string
Replaces tokens "~site/", "~sitecollection/", "~sitecollectionmasterpagegallery", "{lcid}", "{locale}" and "{siteclienttag}" with appropriate context values
Parameters
Returns
string
public static RichTextModeToString(fileSystemObjectType: RichTextMode): string
Parameters
Returns
string
public static Trim(str: string): string
Removes leading and trailing spaces
Parameters
Returns
string
public static TryParseUserControlValue(userStr: string, separator: string): Array<any>
Tries to resolve user names from string. Pushes either ClientUserValue (if resolved successfully) or original string (if not) to the resulting array.
Parameters
-
userStr: string
-
separator: string
Returns
Array<any>