2.3.0 • Published 2 years ago

@forter/list v2.3.0

Weekly downloads
34
License
Apache-2.0
Repository
github
Last release
2 years ago

fc-list

Simple list which is presented as key value table.

Usage

<script>
   import '@forter/list';
</script>

<fc-list>
</fc-list>

Examples

<!-- spaceIn -->
<fc-list .array="${[['type','dog cat'],['name','joy neow']]}">
   <b slot="header">Header</b>
   <b slot="footer">Footer</b>
</fc-list>

<!-- complex -->
<fc-list>
     <fc-list-item>
       <fc-icon icon="ecommerce"></fc-icon>
       <label> Ecommerce </label>
       <section>Forter protects all of your online transactions from fraud </section>
     </fc-list-item>
     <fc-list-item>
         <fc-icon icon="inr"></fc-icon>
         <label> INR Solution </label>
         <section>Forter automatically evaluates the risk of each transaction affected by the directive </section>
     </fc-list-item>
     <fc-list-item>
         <fc-icon icon="loyalty"></fc-icon>
         <label> Loyalty </label>
         <section> protects your loyalty program accounts from unauthorized access or attempts to steal their points </section>
     </fc-list-item>
     <fc-list-item>
       <fc-icon icon="returns"></fc-icon>
       <label> Returns </label>
       <section>Identify and block consumers who abuse your business’ refund policies. </section>
     </fc-list-item>

     <fc-list-item>
       <fc-icon icon="promotions"></fc-icon>
       <label> Promotions </label>
       <section> Prevent financial losses due to users who take advantage of your promotions and coupons.. </section>
     </fc-list-item>

     <fc-list-item>
       <fc-icon icon="gateway"></fc-icon>
       <label> Gateway </label>
       <section> determine whether credit card applicants are legitimate to safeguard your customer relationships </section>
     </fc-list-item>

     <fc-list-item>
         <fc-icon icon="developer"></fc-icon>
         <label>Developer</label>
         <section> Integration tools to help faster and smoother integration to Forter.</section>
     </fc-list-item>
</fc-list>

Properties

PropertyAttributeTypeDefaultDescription
arrayarrayany[]List of arrays to display. example: [["type","dog"],["name","joy"],["food","bone"],["age",2]]
columnscolumnsnumber2Number of columns when using fc-list-item slot. example: 3
emptyemptystring"No Data"Text when there is no items. example: Oops! No Data
listany
objectobjectanyObject to display. example: {"type": "dog", "name": "joy", "food": "bone", "age": 2}
titletitlestringTitle above the list. example: My Cool Dog Properties

Events

EventDescription
countthe number of records

Slots

NameDescription
both header and footer. Both: <b slot="header">Header</b><b slot="footer">Footer</b>
footertitle at bottom of the list. example: <b slot="footer">My Cool Dog Properties</b>
headertitle at top of the list. example: <b slot="header">My Cool Dog Properties</b>

CSS Custom Properties

PropertyDescription
--fc-list-border-coloritems border color. default: --fc-gray-500, example: gold
--fc-list-border-radiusborder radius. default: 4px, example: 15px
--fc-list-font-sizelist's font size. default: 15px, example: 20px
--fc-list-paddinglist's inner padding. default: 15px, example: 10px
2.3.0

2 years ago

2.2.7

4 years ago

2.2.6

4 years ago

2.2.5

4 years ago

2.2.4

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.0

4 years ago