craftpip / angular-confirm

A multipurpose plugin for alert, confirm & dialog for angular1
http://craftpip.github.io/angular-confirm/
MIT License
115 stars 20 forks source link

Input Example #19

Open mikeipic opened 7 years ago

mikeipic commented 7 years ago

Can you put an input example on your page? The one you have as an example works great but I can not find any examples of how you are defining it. What scope its using, If it is an inline template, whether you can defind it in a schema like you do the buttons etc. Thanks in advance.

Abdallah-khalil commented 6 years ago

Hello #mikeipic , i know this is a late answer but i found an easy workaround to use with just one input in the dialog this.$ngConfirm({ title: 'Put Ready!', icon: 'fa fa-check-circle-o text-center', ` content: "

       ", `
      `  type: 'blue', `
      `  theme: 'modern', `
       ` typeAnimated: true, `
      `  buttons: { `
          `  disable: { `
            `    text: 'Ready', `
             `   btnClass: 'btn-success', `
              `  action: () => { 
                         const inputValue =$('#inputValue ').val();
                } `
           ` }
        }
    });

`