AssigDataModel
public string AssigDataModel(SimplisityRazor sModel)
Example
@AssigDataModel(sModel)
AssignDataModel
Description: Assigns the data model for Razor, making the template easier to build by populating various data properties like appTheme, moduleData, portalData, etc., from the SimplisityRazor model.
Signaturepublic string AssignDataModel(SimplisityRazor sModel)
Example
@AssignDataModel(sModel)
DelayFormButton
Description: Displays a "Post" button with delay. This is to avoid unwanted robot posts. Renders a form submission button that appears after a specified delay. This is a security measure to help prevent automated bot submissions. It renders a specified Razor template for the button's appearance.
Signaturepublic IEncodedString DelayFormButton(SimplisityRazor sModel, string spost, int millisec = 1200, string template = "DelayFormButton.cshtml")
Example
@DelayFormButton(sModel, spost, millisec, template)
ResourceKey
Description: Gets a localized resource string. It searches through a list of resource paths and file keys (including 'RocketForms' and theme-specific resx files) to find the requested key.
Signaturepublic string ResourceKey(AppThemeLimpet appTheme, String resourceKey, String lang = "", String resourceExtension = "Text")
Example
@ResourceKey(appTheme, resourceKey, lang, resourceExtension)
StylePadding
Description: Standardized method and names to craete top,bottom,left,right padding on an element. Allows potion adjustment from module settings without change CSS files. field Id: leftpadding,rightpadding,toppadding,bottompadding Generates an inline CSS padding style string based on module settings. It reads 'leftpadding', 'rightpadding', 'toppadding', and 'bottompadding' settings and creates corresponding CSS properties.
Signaturepublic string StylePadding()
Example
@StylePadding()