New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

data-dlg

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-dlg

data-dlg is data-binder for bsn boosted Bootstrap4 modal dialog.

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

data-dlg

CircleCI codecov

data-dlg is data-binder for bsn boosted Bootstrap4 modal dialog.

  • Support auto/manual data binding
  • Support i18n resource

install

via npm

npm install data-dlg

via CDN

<script src="https://cdn.jsdelivr.net/npm/data-dlg/lib/data-dlg.js"></script>

import NPM project as ES module

import DialogManager from "data-dlg";

data-dlg apis

Attribute NameAttribute ValueDescription
data-dlgdialogIdWhen you click on the element to which this attribute is given, the specified dialog (identified by diloagId) is automatically opened.
data-dlg-resumeN/AIf the element with this attribute was a child element of a dialog with an element with this attribute, clicking on the element with this attribute will open the dialog specified by data-dlg, and after the opening dialog is closed, the dialog with the element with this attribute will open again.
data-dlg-propProperty NameSpecify for an input element (such as Input). The property name of the context variable and DOM element at the time of binding. E.g., the initial value of the Input element will show the name of this property out of context, and the input value of the Input element will be stored in the context variable of this property name.
data-dlg-input-typeProperty TypeSpecify for an input element (such as Input). Property type "text" "number" "date" "date" "time" "datetime" to specify.
data-dlg-focusN/ASpecify for an input element (such as Input). Specify the input element to focus automatically when the dialog is displayed.
data-dlg-enter-to-applyN/ASpecify for an input element (such as Input). If you press enter in an input element, Apply will be issued automatically.
data-dlg-hiddenProperty Namelabel element (such as a div or label). If the specified property is EMPTY, then the element with this attribute is hidden.
data-dlg-refProperty Name or SentenceIdSpecified for selective elements (such as SELECT elements). Specify a name that indicates the list of candidates to be displayed in the selection type element. If there is a property specified by this attribute in the context, the property is used as a candidate list. If it does not exist in the context, it uses the resource name of the same name from the i18n resource as a search candidate list. Selective elements can use either multiple choice or single choice.
data-dlg-multi-propProperty NameA property of array type that holds multiple values. Specify it for an enumerated type element (such as a SELECT element).
data-dlg-keyString valueUse it with data-dlg-resume. When you come back from an external dialog, you can get it as an argument to the onResume method.

FAQs

Package last updated on 12 Jan 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc