Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
sdk-message
Advanced tools
The sdk-message component is an easy "toaster-like" messaging component that allows you to provide feedback to users.
NOTE: This package leverages the sdk-core-library for core configurations (i.e., colors, icons, etc.).
Using NPM:
npm install --save sdk-message
To configure the sdk-message
for your application, add the following lines to your app.module.ts file:
import { SDKMessageModule } from 'sdk-message';
@NgModule({
imports: [
SDKMessageModule
]
})
export class AppModule { }
message: string = ""; // Message to display.
height: string = ""; // Height of the message box. Default value is "35px".
style: string = ""; // Custom style to apply to message. Default value includes blue background with white font.
timer: number = 5; // Time (in seconds) to display the message. Default value is shown.
<sdk-message [(message)]="message"></sdk-message>
<sdk-message [(message)]="message" height="50px"></sdk-message>
<sdk-message [(message)]="message" style="height: 50px;"></sdk-message>
<sdk-message [(message)]="message" style="color: red; background-color: yellow;" [timer]=10></sdk-message>
NOTE: The sdk-message
component clears the calling 'message' property be default. This is the reason for the required two-way binding [(message)].
The message will remain on the screen for the "timer" amount. If you click the message, it will close. If you move your mouse over the message, it will pause until you move your mouse away - at which point the timer (countdown) will begin again.
FAQs
Simple to use (Angular) component for displaying messages for a brief moment.
We found that sdk-message demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.