Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@cpelements/cp-documentation
Advanced tools
Encapsulate customer portal documentation content, styles it in a way that doesn't get contaminated from the parent DOM styles, and the content may be loaded dynamically from an API (this feature is in alpha, waiting for the FCC project to make assemblies API).
Intended use is to wrap the body of documentation content that should be styled by rhdocs.css.
<cp-documentation>
<!-- Default slot -->
<h2>Documentation content compiled from AsciiDoc.</h2>
</cp-documentation>
cpDocumentation.loadData()
Tells component to load data from the pfe-endpoint URL.
cpDocumentation.getData()
Returns the module data from the endpoint.
This element takes all content inside of it, does NOT put it into a slot, and copies it into the shadow DOM to protect it from outside styles.
pfe-loaded
: @todo ALPHA Used to indicate that the correct content has already been loaded (dynamically from an endpoint, or server side)pfe-endpoint
: @todo ALPHA The URL to get the content from, the component makes assumptions about how the response is structured.pfe-css
: The URL of CSS that should be inserted into the shadow DOM.Events have not been implemented yet.
@todo
@todo
This wraps content, it doesn't do anything that enhances or gets in the way of accessibility.
None
`npm start`
`npm run test`
`npm run build`
From the PFElements root directory, run:
`npm run demo`
Documentation (and all PFElements) use Prettier to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can integrate your editor with Prettier to have the style rules applied on every save.
FAQs
Documentation element for PatternFly Elements
The npm package @cpelements/cp-documentation receives a total of 22 weekly downloads. As such, @cpelements/cp-documentation popularity was classified as not popular.
We found that @cpelements/cp-documentation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.