
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@exmg/exm-form-drawer
Advanced tools
<exm-form-drawer>
This package provides dialog drawer functionality
Components included:
npm install @exmg/exm-form-drawer
Before start ensure that you have installed web-animation-js
. It is required by @polymer/paper-dialog
.
npm install web-animation-js
Load this script in index.html
<!-- Ensure Web Animations polyfill is loaded -->
<script src="../node_modules/web-animations-js/web-animations-next-lite.min.js"></script>
Some dependencies @exmg/exm-paper-combobox
use @apply
to apply css mixins.
This require to load script in index.html
<script src="../node_modules/@webcomponents/shadycss/apply-shim.min.js"></script>
It is basic component that probably should not be used directly. It serves only as drawer without form functionality, so it is content agnostic. You can pass any dom markup as children of this component.
Wraps around exm-drawer.
Provides form functionality to drawer:
Name | Description |
---|---|
default | Form elements within drawer |
Name | Type | Default | Description |
---|---|---|---|
opened | boolean | None | whether or not drawer is visible |
no-cancel-on-outside-click | boolean | None | whether or not clicking outside drawer should close drawer |
submit-btn-title | string | None | title of submit button. Default "Submit" |
cancel-btn-title | string | None | title of cancel button. Default "Cancel" |
keep-opened-on-submit-success | boolean | None | whether or not drawer should be hidden after successful form submission |
reset-form-on-submit-success | boolean | None | whether or not drawer form should be reset after successful form submission |
Name | Description |
---|---|
exm-drawer-opened-changed | when drawer shown/hidden |
Name | Description |
---|---|
--exm-drawer-color | set the height of slot container - handy when wanting to control max-height of form. |
--exm-drawer-bg-color | set the padding right for the form internal element. |
--mdc-theme-primary | None |
--mdc-theme-on-surface | None |
--mdc-theme-surface | None |
--exm-form-drawer-header-separator-color | Color of header seperator of form |
--exm-drawer-max-width | Max width of drawer |
All dom markup passed as children into exm-form-drawer will be wrapped into exm-form underhood.
To properly handle form submission, you should call done() or error() on form instance after receiving submit event from exm-form-drawer. Please read https://github.com/ExmgElements/exm-form docs for more info.
<exm-form-drawer
?opened="${this.opened}"
?keep-opened-on-submit-success="${this.keepOpenedOnSubmitSuccess}"
?reset-form-on-submit-success="${this.resetFormOnSubmitSuccess}"
?no-cancel-on-outside-click="${this.noCancelOnOutsideClick}"
@exm-drawer-opened-changed="${this.handleOpenedChanged}"
submit-btn-title="Create"
@submit="${this.onSubmit}"
@cancel="${this.onCancel}"
>
<span slot="title">New event</span>
<exm-paper-combobox label="Type" name="type" selected="0" always-float-label>
<paper-item>Trivia</paper-item>
<paper-item>Other</paper-item>
</exm-paper-combobox>
<paper-input name="question" label="Question" value="Who's Dylan Hartigan's favorite artist?" required></paper-input>
<paper-input name="answer_a" label="Answer A" value="Beyoncé"></paper-input>
<paper-input name="answer_b" label="Answer B" value="Eminem"></paper-input>
<paper-input name="answer_c" label="Answer C" value="Ariana Grande"></paper-input>
<br />
<exm-button unelevated> + Add answer </exm-button>
</exm-form-drawer>
FAQs
Form side drawer element
The npm package @exmg/exm-form-drawer receives a total of 139 weekly downloads. As such, @exmg/exm-form-drawer popularity was classified as not popular.
We found that @exmg/exm-form-drawer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.