kntmrkm / data-confirm-modal-semantic-ui

Makes Rails' link_to confirm: 'foo' build a SemanticUI Modal instead of calling the browser's confirm() API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data-Confirm Modal for Semantic-UI

This gem have forked from ifad/data-confirm-modal.

https://github.com/ifad/data-confirm-modal

This gem did specific change for semantic-ui. I have tested on Rails. If you use without Rails, need to test maybe.

Installation

Add this line to your application's Gemfile:

gem 'data-confirm-modal-semantic-ui', github: 'kntmrkm/data-confirm-modal-semantic-ui'

Then execute:

$ bundle

And then require the Javascript from your application.js:

//= require data-confirm-modal-semantic-ui

Usage

See original gem. It's almost same.

https://github.com/ifad/data-confirm-modal

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Makes Rails' link_to confirm: 'foo' build a SemanticUI Modal instead of calling the browser's confirm() API.

License:MIT License


Languages

Language:Ruby 100.0%