2.15.2 • Published 10 months ago

@forter/popover v2.15.2

Weekly downloads
74
License
Apache-2.0
Repository
github
Last release
10 months ago

fc-popover

An element to be used to show additional content or operations

Usage

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

<fc-popover>
     <fc-button slot="toggle">Open</fc-button>
     <div slot="content">
         <div>This is the content</div>
         <div>Of the famous popover</div>
         <div>From forter web components</div>
         <div>...</div>
     </div>
</fc-popover>

Examples

 <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>

Properties

PropertyAttributeTypeDefaultDescription
closeany
closeablecloseablebooleanfalsewhether popover is closed by clicking content.
disableddisabledbooleanfalsedisabled boolean. default: false, example: true
horizontaloffsethorizontaloffsetnumber0horizontal offset for the content in pixels
leaveToggleany
openopenbooleanfalsewhether popover is opened.
openonhoveropenonhoverbooleanfalsewhether popover is opened by mouse over instead of click.
positionposition"top" \| "bottom" \| "left" \| "right" \| "right_top" \| "left_top" \| "bottom_left" \| "bottom_right"popover position with relative to toggle slot
registerToggleany
toggleany
verticaloffsetverticaloffsetnumber0vertical offset for the content in pixels

Events

EventDescription
openedwhen visibility of pop over change. method: toggle, example: { "open" : true }
transition-endwhen the conent finishes fading

CSS Custom Properties

PropertyDescription
--fc-popover-arrow-sizecontent's arrow size. default: 10px
--fc-popover-background-colorcontent's background color. default: white
--fc-popover-border-radiuscontent's border radios. default: 10px
--fc-popover-box-shadowcontent's box shadow size. default: 0 2px 6px 2px rgba(183, 203, 206, 0.25)
--fc-popover-paddingcontent's padding color. default: 10px
--fc-popover-z-indexcontent's z-index. default: 999
2.15.2

10 months ago

2.15.0

10 months ago

2.15.1

10 months ago

2.14.3

2 years ago

2.14.2

2 years ago

2.14.1

2 years ago

2.14.0

2 years ago

2.13.4

2 years ago

2.13.3

3 years ago

2.13.2

3 years ago

2.13.1

3 years ago

2.13.0

3 years ago

2.12.7

3 years ago

2.12.6

3 years ago

2.12.5

3 years ago

2.12.4

4 years ago

2.12.3

4 years ago

2.12.2

4 years ago

2.12.1

4 years ago

2.12.0

4 years ago

2.11.2

4 years ago

2.11.1

4 years ago

2.11.0

4 years ago

2.10.0

4 years ago

2.9.2

4 years ago

2.9.1

4 years ago

2.9.0

4 years ago

2.7.2

4 years ago

2.8.0

4 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.2

4 years ago

2.6.1

4 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.4.1

4 years ago

2.4.2

4 years ago

2.4.0

4 years ago

2.3.0

4 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.0

4 years ago

2.0.0

4 years ago