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

MVC ye entegre etme #27

Open
aly14 opened this issue May 12, 2020 · 3 comments
Open

MVC ye entegre etme #27

aly14 opened this issue May 12, 2020 · 3 comments

Comments

@aly14
Copy link

aly14 commented May 12, 2020

merhabalar,il adı yerine şehirlere göre satışları göstermek istiyorum ama , bunu MVC de nasıl yapabilirim.

@SarperMUTLUBAY
Copy link
Contributor

@aly14 merhaba,
svg-turkiye-haritasi.js içerisinde 'mouseover' event'i içerisinde 'data-iladi' olarak index.html'de ilgili il verisine ait datayı oraya basıyoruz. Dilersen 'data-iladi' verisini mvc'de satış rakamları ile doldurabilirsin veya alternatif olarak (önerim bu yönde) index.html'de illere 'data-satis-rakami' attribute ekleyip sonra 'mouseover' içerisinde o veriyi çekip gösterebilirsin. Hatta alttaki şekilde yaparsan görsel olarak da güzel durabilir.

event.target.parentNode.getAttribute('data-iladi') + ' (' + event.target.parentNode.getAttribute('data-satis-rakami') + ')';

image

@aly14
Copy link
Author

aly14 commented Dec 28, 2020

8 aydır derenin altından çok sular aktı :)

@SarperMUTLUBAY
Copy link
Contributor

8 aydır derenin altından çok sular aktı :)

Haklısın hocam ancak bende projeye destekçi olduğumdan bildirim bana gelmiyor ve göremiyorum. Az önce bir arkadaş İnstagram üzerinden birşey sorunca girip baktım gördüğüm 2 taneyi cevapladım 😊

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

2 participants