Skip to content

DimChtz/jquery.cw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery.cw

A tiny jQuery plugin that lets you display confirm windows in javascript.

Example (dark theme)

$cw({

    title: 'Hellow world',
    content: 'Are you sure?',
    theme: 'dark',
    okay: {
         text: 'Yes, I am',
         action: function() { console.log('Clicked okay button'); }
    },
    cancel: {
         text: 'No, I am not',
         action: function() { console.log('Clicked cancel button'); }
    }

});

Options

Option Description
title The title of the window (text)
content The content of the window (text)
theme dark
okay.text The text of the Okay button
okay.action The callback function of the Okay button
cancel.text The text of the Cancel button
cancel.action The callback function of the Cancel button

Releases

No releases published

Packages

No packages published