my-items
v1.0.0
Published
General idea for the repo is to hold the component that can be easily included to any of the technologies we use: PHP / VuejJS / .Net.
Downloads
1
Readme
My Items
General idea for the repo is to hold the component that can be easily included to any of the technologies we use: PHP / VuejJS / .Net.
Web Components - Web APIs | MDN
It is a small JS library that allows us to include it to any page we want and use component as shown in the following example.
Example of usage:
<my-item subject-id="X" item-id="Y" item-type="Z" />
Where:
- subject-id - is our unique user ID
- item-id - is the content ID
- item-type - is the content type (i.e job/article/company/etc)
This component is creating an actionable icon(at a moment it’s heart) which is grey when unsaved and blue when saved.
Clicking the heart from our domain allows us to flip the status from saved to unsaved and backwards in the backend storage through interaction API.