Search Results for

    Show / Hide Table of Contents

    Interface IFeaturePage

    • C#
    • Visual Basic
    public interface IFeaturePage
    Public Interface IFeaturePage
    Namespace: HomeSeer.PluginSdk.Features
    Assembly: PluginSdk.dll


    The base implementation of a feature page in HS4.


    Properties

    View Source

    FileName

    The name of the HTML file that backs this feature page. Ex "my-feature.html"

    Declaration
    • C#
    • Visual Basic
    string FileName { get; set; }
    Property FileName As String
    Property Value
    Type Description
    System.String
    View Source

    Title

    The title of the page. Displayed in the plugin menu and by the browser client.

    Declaration
    • C#
    • Visual Basic
    string Title { get; set; }
    Property Title As String
    Property Value
    Type Description
    System.String

    Methods

    View Source

    GetHtmlFragment(String)

    Get a fragment of HTML attached to a particular ID.

    Declaration
    • C#
    • Visual Basic
    string GetHtmlFragment(string fragmentId)
    Function GetHtmlFragment(fragmentId As String) As String
    Parameters
    Type Name Description
    System.String fragmentId

    The ID of the fragment to get

    Returns
    Type Description
    System.String

    A fragment of HTML

    Remarks

    Used by Scriban.

    View Source

    PostBackProc(String, String, Int32)

    Respond to an HTTP POST directed at this page.

    Declaration
    • C#
    • Visual Basic
    string PostBackProc(string data, string user, int userRights)
    Function PostBackProc(data As String, user As String, userRights As Integer) As String
    Parameters
    Type Name Description
    System.String data

    The body of data attached to the POST

    System.String user
    System.Int32 userRights
    Returns
    Type Description
    System.String

    The data to return as a string. Use JSON.

    • View Source
    In This Article
    Back to top HomeSeer Technologies