Represents a sort order.

Hierarchy

  • OnmsEnum<string>
    • Order

Constructors

  • construct an enum object with an id and label

    Parameters

    • id: string
    • label: string

    Returns Order

Accessors

Methods

  • Whether this order matches the given order string.

    Parameters

    • label: string

    Returns boolean

  • convert this enum to a string suitable for display

    Returns string

  • convert to the JSON representation

    Returns {
        id: string;
        label: string;
    }

    • id: string
    • label: string
  • Given a label ('ASC', 'DESC'), return the corresponding order.

    Parameters

    • label: string

    Returns any