Bluestep JS Documentation
    Preparing search index...

    Class Html

    HTML generation utilities.

    Index

    Constructors

    Methods

    • Generates HTML markup for a button. In the Manage layout, returns a Bootstrap button element. In other layouts, returns an image tag pointing to the ButtonBlaster service.

      Parameters

      • label: string

        The button label text

      • Optionalstyle: string

        Button style name (default: "default")

      • Optionaltransform: string

        Image transform parameter

      Returns string

    • Generates a URL for a ButtonBlaster button image.

      Parameters

      • label: string

        The button label text

      • Optionalstyle: string

        Button style name (default: "default")

      • Optionaltransform: string

        Image transform parameter

      Returns string

    • Generates a JavaScript snippet that opens a pop-in dialog. The returned string is a doPopIn() call that can be placed in an onclick handler or eval'd.

      Parameters

      • url: string

        The URL to load in the pop-in dialog.

      • Optionalheight: number

        Dialog height in pixels.

      • Optionalwidth: number

        Dialog width in pixels.

      • Optionaledit: boolean

        If true, appends a destination redirect for edit mode.

      Returns string

    • Generates an HTML script tag for including a JavaScript file. Paths not starting with '/' or 'http' are prefixed with '/jslib/'. Paths starting with '/jslib/' are rewritten with cache-busting static URLs.

      Parameters

      • src: string

        The script source path or URL.

      Returns string

    • Wraps inline JavaScript code in a script tag.

      Parameters

      • code: string

        The JavaScript code to wrap.

      Returns string