Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add canvas as a multiple time in already selected option's div #145

Open
AshishDudhat opened this issue Dec 15, 2017 · 1 comment
Open

Comments

@AshishDudhat
Copy link

Hello,
I would use the signature for select base as a multiple select menu.
if i select one option and then second time i select second option it add a canvas in signatur div
i use following code

html

  <div #signatures *ngFor="let selected of personArray">
        <div *ngIf="selected.flag == true">
            <div class="label_signature">
                <label>{{selected.name}}</label>
            </div>
            <!-- <div id="signature"></div> -->
            <div id="{{selected.name}}" style="border: 1px solid black; margin: 4%;"></div>
        </div>
    </div>

javascript

 public signObj:any = {};
 public signedPersion = [];
public personArray = [];


 this.personArray = [
     {id:1,name:"abc"},
      {id:2,name:"def"},
     {id:3,name:"ghi"}
   ];   
              
  for(let i=0; i<this.person.length ;i++){
          console.log('name',this.person[i].name)
          let personName = this.person[i].name
      
      $(document).ready(e => {
        var $sigdiv = $("#"+personName)
        var datapair = $sigdiv.jSignature({color:"#000",lineWidth:5})
      });
  }
@AshishDudhat
Copy link
Author

plese solve this problem

@AshishDudhat AshishDudhat reopened this Dec 15, 2017
@AshishDudhat AshishDudhat changed the title add canvas as a multiple time add canvas as a multiple time in already selected option's div Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant