Socket
Socket
Sign inDemoInstall

basic-fade-overflow

Package Overview
Dependencies
2
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    basic-fade-overflow

Fades out content that overflows so the user knows there's more.


Version published
Weekly downloads
4
increased by300%
Maintainers
2
Install size
1.07 MB
Created
Weekly downloads
 

Readme

Source

API Documentation

FadeOverflow ⇐ ElementBase

Fades out content that overflows so the user knows there's more.

This component doesn't handle interactivity.

The component needs to know the color it should fade to, which it tries to infer from the background color. In some situations, this may not work, in which case you can explicitly set the fadeColor attribute.

The component currently always displays the fade, even if the component's content is short enough to fit completely in view.

Kind: global class Extends: ElementBase

fadeOverflow.fadeColor

The color of the fade.

The fade color should match the background color. The component does its best to infer the background color, but in some situations, that may not work. In those cases, you can manually identify the background color. This should be a solid color.

Kind: instance property of FadeOverflow Default: white
Attribute: fadeColor

fadeOverflow.refresh()

Infer the fade color from background color. If you have programmatically changed the color behind the component, you can invoke this method to have the component try to pick up the new background color.

Kind: instance method of FadeOverflow

fadeOverflow.showFade : boolean

True if the component should show the fade to the background color.

Kind: instance property of FadeOverflow Default: true

Keywords

FAQs

Last updated on 02 Jun 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc