![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@one-platform/opc-comment-input
Advanced tools
A standardized web component based on Lit Element for Red Hat One Platform to use as a comment input component.
A standardized web component based on Lit Element for Red Hat One Platform to use as a comment input component.
The opc-comment-input
and opc-comment-list
component is dependent on the Patternfly library for styling. So to avoid any missing styles, add the patternfly.css
file before the component script tags.
npm install --save @one-platform/opc-comment-input
the opc-comment-list
is a subset of opc-comment-input
component.
import '@one-platform/opc-comment-input';
<opc-comment-input></opc-comment-input>
opc-comment-button:click
to get the comment text.const myCommentInput = document.querySelector('opc-comment-input');
myCommentInput.addEventListener('opc-comment-button:click', e => {
console.log(e);
})
<opc-comment-list></opc-comment-list>
const myCommentList = document.querySelector('opc-comment-list');
myCommentList.comments = [{
commenter: 'Dave Brown',
date: 'Friday, May 29, 2020 at 10:59 AM',
comment: 'Uneasy barton seeing remark happen his has. Am possible offering at contempt mr distance stronger an. Attachment excellence announcing or reasonable am on if indulgence.'},
{
commenter: 'Liam Webb',
date: 'Friday, May 29, 2020 at 10:59 AM',
comment: ' Exeter talked in agreed spirit no he unable do. Betrayed shutters in vicinity it unpacked in. In so impossible appearance considered mr. Mrs him left find are good.' },
];
CUSTOM_ELEMENTS_SCHEMA
and import the componentimport { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@one-platform/opc-comment-input';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
<opc-comment-input></opc-comment-input>
<opc-comment-list></opc-comment-list>
import '@one-platform/opc-comment-input';
<opc-comment-input></opc-comment-input>
<opc-comment-list></opc-comment-list>
Type your comment
and can be changed by passing a text as shown in below example:<opc-comment-input placeholder="Enter your comment">
</opc-comment-input>
<opc-comment-list comments="commentsData"></opc-comment-list>
opc-comment-button:click
event is fired when the comment is submitted via the button. Below snippet shows the event lister for componentconst myCommentInput = document.querySelector('opc-comment-input');
myCommentInput.addEventListener('opc-comment-button:click', e => {
console.log(e);
});
npm run dev opc-comment-input
npm run build opc-comment-input
npm run test
FAQs
A standardized web component based on Lit Element for Red Hat One Platform to use as a comment input component.
The npm package @one-platform/opc-comment-input receives a total of 1 weekly downloads. As such, @one-platform/opc-comment-input popularity was classified as not popular.
We found that @one-platform/opc-comment-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.