Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

action-favorites

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

action-favorites

Display an icon button that permit to add or remove from favorites items into uPortal

  • 0.1.1
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Basique usage

<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.2.0/webcomponents-loader.js"></script>
<script src="DEPLOYED_PATH/action-favorites.js?v=0.1.0"></script>

  <action-favorites fname="" chan-id="" is-favorite="" favorite-api-url="" call-on-toggle-fav=""></action-favorites>

  • fname: Optional, to set a functional name class on component
  • chanId: Required, id of the channel, used in favorite request
  • is-favorite: Required, default is false, needed to get the initial state if the channel is in favorites
  • favoriteApiUrl: Optional, usefull to override the default request based on a different contextPath than "/uPortal/"
  • callOnToggleFav: Optional, usefull to call a function after the favorites action is pressed and the request succeed.

Keywords

FAQs

Package last updated on 22 Jun 2018

Did you know?

Socket

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc