koco-modal

1.4.4 • Public • Published

DEPRECATED: Now comes within koco-modaler

koco-modal

Modal wrapper when creating a new modal using the koco generator.

Installation

bower install koco-modal

Usage with KOCO

The koco-modal can be initialized using the knockout-utilities registerComponent function like so:

// components.js
...
koUtilities.registerComponent('modal', {
  htmlOnly: true,
  basePath: 'bower_components/koco-modal/src'
});
...

Creating a modal

Now that the component is registered, a new html tag named <modal> will be available to be used and will initialize a bootstrap modal.

<modal>
  <h1>My awesome modal title</h1>
  <p>Some cool description...</p>
</modal>

Remarks

This component does not register your new modal, it is just a wrapper for the bootstrap html needed to create a modal. You still need to use modaler.

Readme

Keywords

none

Package Sidebar

Install

npm i koco-modal

Weekly Downloads

2

Version

1.4.4

License

MIT

Last publish

Collaborators

  • ozakaria-rc
  • rcguillaume
  • adruffin-rc
  • pubach
  • hugo.leclerc
  • laurentlbm-rc
  • clarose
  • vietsrc
  • matstlo
  • fcharest
  • rcmax