1.0.1 • Published 5 years ago

svelte-achieve-list v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

npm

Svelte. List of achievements.

Screenshot

Screenshot

Install

npm install --save svelte-achieve-list

Example

Look at the example folder for a basic working example.

Usage

<!-- App.html -->
<AchieveList
  endpoint={async () => {
    return [
      {
        name: 'Achieve name',
        icon: '/favicon.png',
        description: '',
        point: 100
      }
    ]
  }}>
  <div slot="loading">...loading</div>
</AchieveList>

<script>
  import AchieveList from 'svelte-achieve-list';
</script>

API

The achieve list component is the only export of the module.

import AchieveList from 'svelte-achieve-list'
Properties
PropertyDefault ValueDescription
endpointundefinedThe endpoint function with return of values
namePropnameThe key of name property in the object by endpoint.
descPropdescriptionThe key of description property in the object by endpoint
pointProppointThe key of point property in the object by endpoint.
iconPropiconThe key of icon property in the object by endpoint.
1.0.1

5 years ago

1.0.0

5 years ago