Module @saltcorn/markup

This is the saltcorn-markup package

Properties

Properties

export=: {
    a: any;
    alert: ((type, s) => string);
    badge: ((col, lbl) => string);
    button: any;
    div: any;
    hr: any;
    i: any;
    input: any;
    link: ((href, s, attributes?) => string);
    localeDate: ((date, options?) => string);
    localeDateTime: ((date, options?) => string);
    localeTime: ((date, options?) => string);
    mkTable: ((hdrs, vs, opts?) => string);
    post_btn: ((href, s, csrfToken, opts?) => string);
    post_delete_btn: ((href, req, what?) => string);
    post_dropdown_item: ((href, s, req, confirm?, what?) => string);
    renderBuilder: ((__namedParameters, csrfToken) => string);
    renderForm: ((form, csrfToken0) => string);
    settingsDropdown: ((id, elems) => string);
    tabs: ((obj) => any);
    toast: ((type, s, id?) => string);
}

Type declaration

  • a: any
  • alert: ((type, s) => string)
      • (type, s): string
      • creates an alert div (deprecated, use toast)

        Parameters

        • type: string
        • s: string

        Returns string

  • badge: ((col, lbl) => string)
      • (col, lbl): string
      • Parameters

        • col: string
        • lbl: string

        Returns string

  • button: any
  • div: any
  • hr: any
  • i: any
  • input: any
  • link: ((href, s, attributes?) => string)
      • (href, s, attributes?): string
      • Parameters

        • href: string
        • s: string
        • attributes: any = {}

        Returns string

  • localeDate: ((date, options?) => string)
      • (date, options?): string
      • Parameters

        • date: Date
        • options: any = {}

        Returns string

  • localeDateTime: ((date, options?) => string)
      • (date, options?): string
      • Parameters

        • date: Date
        • options: any = {}

        Returns string

  • localeTime: ((date, options?) => string)
      • (date, options?): string
      • Parameters

        • date: Date
        • options: any = ...

        Returns string

  • mkTable: ((hdrs, vs, opts?) => string)
      • (hdrs, vs, opts?): string
      • Parameters

        • hdrs: HeadersParams[]
        • vs: any[]
        • Optional opts: any = {}

        Returns string

        Function

  • post_btn: ((href, s, csrfToken, opts?) => string)
      • (href, s, csrfToken, opts?): string
      • Parameters

        • href: string
        • s: string
        • csrfToken: string
        • opts: any = {}

        Returns string

  • post_delete_btn: ((href, req, what?) => string)
      • (href, req, what?): string
      • UI Form for Delete Item confirmation

        Parameters

        • href: string

          href

        • req: any

          Request

        • Optional what: string

        Returns string

        return html form

  • post_dropdown_item: ((href, s, req, confirm?, what?) => string)
      • (href, s, req, confirm?, what?): string
      • Parameters

        • href: string
        • s: string
        • req: any
        • Optional confirm: boolean
        • Optional what: string

        Returns string

  • renderBuilder: ((__namedParameters, csrfToken) => string)
      • (__namedParameters, csrfToken): string
      • Parameters

        • __namedParameters: any
        • csrfToken: any

        Returns string

  • renderForm: ((form, csrfToken0) => string)
      • (form, csrfToken0): string
      • Parameters

        • form: string | AbstractForm
        • csrfToken0: string | boolean

        Returns string

  • settingsDropdown: ((id, elems) => string)
      • (id, elems): string
      • Parameters

        • id: string
        • elems: any

        Returns string

  • tabs: ((obj) => any)
      • (obj): any
      • Parameters

        • obj: any

        Returns any

  • toast: ((type, s, id?) => string)
      • (type, s, id?): string
      • creates a toast div

        Parameters

        • type: string

          bootstrap type

        • s: string
        • Optional id: string

        Returns string

Generated using TypeDoc