Function copyLeaderboardDataToClipboard

  • Copy Leaderboard Data in browser.

    example:

    const data: LeaderboardItem[] = [...]

    // will get basic copy property: "Rank, UserID, Name, Score, Region, EventoryKey"
    copyLeaderboardDataToClipboard(data)

    // It can extra more column from data to Clipboard
    // will get extra copy property: "Rank, UserID, Name, Score, Region, EventoryKey, Lang, Age"
    copyLeaderboardDataToClipboard(data, [
    {
    name: 'Lang',
    filterFuntion: item => item.lang?.primary,
    },
    {
    name: 'Age',
    filterFuntion: item => item.age,
    },
    ])

    Try it on Playground: https://17media.github.io/vmo-lib/output/index.html?page=2

    Parameters

    • data: LeaderboardItem[]

      Leaderboard data which will be copy.

    • extraDataList: ExtraData[]

      Setting extraData to get more than basic columns

    Returns boolean

    copy result: success/fail

Generated using TypeDoc